aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/CoreFeatures/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/CoreFeatures/main.cpp')
-rw-r--r--src/tests/CoreFeatures/main.cpp30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/tests/CoreFeatures/main.cpp b/src/tests/CoreFeatures/main.cpp
index ab553fa6..2cbbe626 100644
--- a/src/tests/CoreFeatures/main.cpp
+++ b/src/tests/CoreFeatures/main.cpp
@@ -30,8 +30,6 @@
#include <MacroClient.h>
-#define BR "\r\n"
-
class TestCoreFeatures : public QObject
{
Q_OBJECT
@@ -42,17 +40,23 @@ private:
private slots:
void initTestCase()
{
- // * Ensure Qt VS Tools extension is loaded
- // * Wait for Qt VS Tools to finish initialization
- QString Result = client.runMacro(QStringLiteral(
- "//# wait 15000 Assembly QtVsTools => GetAssembly(\"QtVsTools\")" BR
- "var VsixType = QtVsTools.GetType(\"QtVsTools.Vsix\");" BR
- "var VsixInstance = VsixType.GetProperty(\"Instance\","
- "BindingFlags.Public | BindingFlags.Static);" BR
- "//# wait 15000 object Vsix => VsixInstance.GetValue(null)" BR
- "Result = \"(ok)\";" BR
- ));
- QCOMPARE(Result, QStringLiteral("(ok)"));
+ MACRO_ASSERT_OK(client.runMacro(QFile(":/QtVsToolsLoaded")));
+ }
+
+ void guiAppCreateRebuildDebug()
+ {
+ client.runMacro("//# wait 5000 => !Dte.Solution.IsOpen");
+ MACRO_ASSERT_OK(client.runMacro(QFile(":/CreateGuiApp")));
+ MACRO_ASSERT_OK(client.runMacro(QFile(":/RebuildSolution")));
+ MACRO_ASSERT_OK(client.runMacro(QFile(":/DebugGuiApp")));
+ client.runMacro(
+ "Dte.Solution.Close(false);" "\r\n"
+ "//# wait 15000 => !Dte.Solution.IsOpen" "\r\n");
+ }
+
+ void cleanupTestCase()
+ {
+ client.runMacro("//#quit");
}
};