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:
Christian Stenger
2015-02-10 14:20:43 +01:00
parent 751d2e2bb1
commit 213a687f45
38 changed files with 1108 additions and 18 deletions

View File

@@ -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;
}