diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-02-10 14:20:43 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-02-17 10:26:28 +0200 |
commit | 213a687f454682b8cd1e79fc27762ac6f374502e (patch) | |
tree | f4d1fd940546a261862ecdfc389575390c1b24e3 /plugins/autotest/autotestplugin.cpp | |
parent | 751d2e2bb1f0f2829fff8dac15b534fbadc25b3c (diff) | |
download | qt-creator-213a687f454682b8cd1e79fc27762ac6f374502e.tar.gz |
Rework parsing and provide unit test
Handling of parsing has slightly changed. The parser now uses simple
states to be capable of postponing triggered parses if there is already
a parsing in progress. Furthermore the parser now waits for the current
project to be completely scanned.
Change-Id: I6d4968d28194ba8d23d3a0ee6ab454d81a549e67
Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
Diffstat (limited to 'plugins/autotest/autotestplugin.cpp')
-rw-r--r-- | plugins/autotest/autotestplugin.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/autotest/autotestplugin.cpp b/plugins/autotest/autotestplugin.cpp index 624812200c..46e2a311d9 100644 --- a/plugins/autotest/autotestplugin.cpp +++ b/plugins/autotest/autotestplugin.cpp @@ -44,6 +44,10 @@ #include <QtPlugin> +#ifdef WITH_TESTS +#include "autotestunittests.h" +#endif + using namespace Autotest::Internal; static AutotestPlugin *m_instance = 0; @@ -151,3 +155,11 @@ void AutotestPlugin::triggerAction() tr("This is an action from Autotest.")); } +QList<QObject *> AutotestPlugin::createTestObjects() const +{ + QList<QObject *> tests; +#ifdef WITH_TESTS + tests << new AutoTestUnitTests(TestTreeModel::instance()); +#endif + return tests; +} |