forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user