diff options
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; +} |