forked from qt-creator/qt-creator
Autotest: Add ITestParser::supportedExtensions
Change-Id: I3bb0f9b2a989cc4c9b4f6ae95d36308bc192158d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -48,6 +48,9 @@ public:
|
||||
virtual void init(const Utils::FilePaths &filesToParse, bool fullParse) = 0;
|
||||
virtual bool processDocument(QFutureInterface<TestParseResultPtr> &futureInterface,
|
||||
const Utils::FilePath &fileName) = 0;
|
||||
|
||||
virtual QStringList supportedExtensions() const { return {}; }
|
||||
|
||||
virtual void release() = 0;
|
||||
|
||||
ITestFramework *framework() const { return m_framework; }
|
||||
|
@@ -29,6 +29,8 @@ public:
|
||||
bool processDocument(QFutureInterface<TestParseResultPtr> &futureInterface,
|
||||
const Utils::FilePath &fileName) override;
|
||||
Utils::FilePath projectFileForMainCppFile(const Utils::FilePath &fileName) const;
|
||||
QStringList supportedExtensions() const override { return {"qml"}; };
|
||||
|
||||
private:
|
||||
bool handleQtQuickTest(QFutureInterface<TestParseResultPtr> &futureInterface,
|
||||
CPlusPlus::Document::Ptr document, ITestFramework *framework);
|
||||
|
@@ -25,11 +25,11 @@
|
||||
#include <QFutureInterface>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
static Q_LOGGING_CATEGORY(LOG, "qtc.autotest.testcodeparser", QtWarningMsg)
|
||||
|
||||
namespace Autotest {
|
||||
namespace Internal {
|
||||
|
||||
Q_LOGGING_CATEGORY(LOG, "qtc.autotest.testcodeparser", QtWarningMsg)
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
TestCodeParser::TestCodeParser()
|
||||
|
Reference in New Issue
Block a user