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 void init(const Utils::FilePaths &filesToParse, bool fullParse) = 0;
|
||||||
virtual bool processDocument(QFutureInterface<TestParseResultPtr> &futureInterface,
|
virtual bool processDocument(QFutureInterface<TestParseResultPtr> &futureInterface,
|
||||||
const Utils::FilePath &fileName) = 0;
|
const Utils::FilePath &fileName) = 0;
|
||||||
|
|
||||||
|
virtual QStringList supportedExtensions() const { return {}; }
|
||||||
|
|
||||||
virtual void release() = 0;
|
virtual void release() = 0;
|
||||||
|
|
||||||
ITestFramework *framework() const { return m_framework; }
|
ITestFramework *framework() const { return m_framework; }
|
||||||
|
@@ -29,6 +29,8 @@ public:
|
|||||||
bool processDocument(QFutureInterface<TestParseResultPtr> &futureInterface,
|
bool processDocument(QFutureInterface<TestParseResultPtr> &futureInterface,
|
||||||
const Utils::FilePath &fileName) override;
|
const Utils::FilePath &fileName) override;
|
||||||
Utils::FilePath projectFileForMainCppFile(const Utils::FilePath &fileName) const;
|
Utils::FilePath projectFileForMainCppFile(const Utils::FilePath &fileName) const;
|
||||||
|
QStringList supportedExtensions() const override { return {"qml"}; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool handleQtQuickTest(QFutureInterface<TestParseResultPtr> &futureInterface,
|
bool handleQtQuickTest(QFutureInterface<TestParseResultPtr> &futureInterface,
|
||||||
CPlusPlus::Document::Ptr document, ITestFramework *framework);
|
CPlusPlus::Document::Ptr document, ITestFramework *framework);
|
||||||
|
@@ -25,11 +25,11 @@
|
|||||||
#include <QFutureInterface>
|
#include <QFutureInterface>
|
||||||
#include <QLoggingCategory>
|
#include <QLoggingCategory>
|
||||||
|
|
||||||
static Q_LOGGING_CATEGORY(LOG, "qtc.autotest.testcodeparser", QtWarningMsg)
|
|
||||||
|
|
||||||
namespace Autotest {
|
namespace Autotest {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
|
Q_LOGGING_CATEGORY(LOG, "qtc.autotest.testcodeparser", QtWarningMsg)
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
TestCodeParser::TestCodeParser()
|
TestCodeParser::TestCodeParser()
|
||||||
|
Reference in New Issue
Block a user