mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 19:48:52 +00:00
feat(Storybook): Open tests dir from the app
This commit is contained in:
parent
8a996a9175
commit
5784f4cd87
@ -140,5 +140,8 @@ ToolBar {
|
||||
? `Please add valid tests to <b>${testRunnerControls.testFileName}</b> file`
|
||||
: ""
|
||||
}
|
||||
|
||||
onAccepted: Qt.openUrlExternally(Qt.resolvedUrl(TestsRunner.testsPath()))
|
||||
Component.onCompleted: standardButton(Dialog.Ok).text = "Open tests folder"
|
||||
}
|
||||
}
|
||||
|
@ -49,3 +49,8 @@ QObject* TestsRunner::runTests(const QString& fileName)
|
||||
|
||||
return testRunnerProcess;
|
||||
}
|
||||
|
||||
QString TestsRunner::testsPath() const
|
||||
{
|
||||
return m_testsBasePath;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ public:
|
||||
|
||||
Q_INVOKABLE int testsCount(const QString& path);
|
||||
Q_INVOKABLE QObject* runTests(const QString& path);
|
||||
Q_INVOKABLE QString testsPath() const;
|
||||
|
||||
private:
|
||||
QString m_testRunnerExecutablePath;
|
||||
|
Loading…
x
Reference in New Issue
Block a user