Skip to content

Instantly share code, notes, and snippets.

@claremacrae
Last active June 11, 2020 12:06
Show Gist options
  • Save claremacrae/db5074b9de47e63280c4d207adaeb428 to your computer and use it in GitHub Desktop.
Save claremacrae/db5074b9de47e63280c4d207adaeb428 to your computer and use it in GitHub Desktop.
XML to paste in to RunManager section of CLion workspace.xml to add a CTest configuration
<component name="RunManager" selected="CMake Application.DocTest_Tests">
....
<configuration name="CTest - Run all tests" type="CMakeRunConfiguration" factoryName="Application" PROGRAM_PARAMS="--output-on-failure" REDIRECT_INPUT="false" WORKING_DIR="file://$CMakeCurrentBuildDir$/.." PASS_PARENT_ENVS_2="true" CONFIG_NAME="Debug-clang++-mp-9.0 Ninja Unity" RUN_PATH="/opt/local/bin/ctest" EXPLICIT_BUILD_TARGET_NAME="all">
<method v="2">
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
</method>
</configuration>
@claremacrae
Copy link
Author

Note the CONFIG_NAME will need to be changed, and possible also WORKING_DIR may need more or less /..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment