diff options
Diffstat (limited to 'share/qtcreator/templates/wizards/autotest/wizard.json')
-rw-r--r-- | share/qtcreator/templates/wizards/autotest/wizard.json | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/share/qtcreator/templates/wizards/autotest/wizard.json b/share/qtcreator/templates/wizards/autotest/wizard.json index e35f9cd980..1ba0101a09 100644 --- a/share/qtcreator/templates/wizards/autotest/wizard.json +++ b/share/qtcreator/templates/wizards/autotest/wizard.json @@ -91,6 +91,10 @@ { "trKey": "Boost Test", "value": "BoostTest" + }, + { + "trKey": "Catch2", + "value": "Catch2" } ] @@ -168,6 +172,25 @@ } }, { + "name": "CatchIncDir", + "trDisplayName": "Catch2 include directory (optional):", + "visible": "%{JS: value('TestFrameWork') === 'Catch2'}", + "mandatory": false, + "type": "PathChooser", + "data": { + "kind": "existingDirectory" + } + }, + { + "name": "Catch2NeedsQt", + "trDisplayName": "Use Qt libraries", + "visible": "%{JS: '%{TestFrameWork}' === 'Catch2'}", + "type": "CheckBox", + "data": { + "checked": true + } + }, + { "name": "BuildSystem", "trDisplayName": "Build system:", "type": "ComboBox", @@ -267,7 +290,7 @@ { "source": "files/tst_main.cpp", "target": "%{MainCppName}", - "condition": "%{JS: ['GTest', 'QtQuickTest', 'BoostTest'].indexOf(value('TestFrameWork')) >= 0}", + "condition": "%{JS: ['GTest', 'QtQuickTest', 'BoostTest', 'Catch2'].indexOf(value('TestFrameWork')) >= 0}", "openInEditor": true }, { @@ -277,6 +300,12 @@ "openInEditor": true }, { + "source": "files/catch2_tst.cpp", + "target": "%{TestCaseFileWithCppSuffix}", + "condition": "%{JS: '%{TestFrameWork}' === 'Catch2'}", + "openInEditor": true + }, + { "source": "../projects/git.ignore", "target": ".gitignore", "condition": "%{JS: ( %{IsTopLevelProject} && value('VersionControl') === 'G.Git' )}" |