Notes |
|
(0009951)
|
Bill Hoffman
|
2007-12-17 12:08
|
|
How do you add parameters to the RUN_TEST target? If you run ctest from the command line with -V it will work. But, I don't think we want two RUN_TEST targets. What exactly are you suggesting? |
|
|
(0022377)
|
goatboy160
|
2010-09-28 12:08
|
|
Inorder for us to get useful results we must run with the -V, thus rendering the RUN_TESTS target useless. our scripts run ctest manually now, but for devs it would be nice to be able to use the RUN_TESTS target, which unfortunately without the Verbose parameter provides no feedback on the failure and is thus useless. |
|
|
(0022432)
|
Thomas Wiedemann
|
2010-10-07 09:44
(edited on: 2010-11-15 06:10) |
|
Hi, i would also appreciate a solution for this issue.
My test programs print the reason and location of failures, so when ctest executes them from a development environment like Visual Studio and -VV is (manually) added to ctest or the environment variable "CTEST_OUTPUT_ON_FAILURE" is set, we can easily jump to the location in the source code where the test failed, very comfortable.
The problem is, i can't control this behaviour from within cmake (can't set parameters for ctest, and can't set global environment variables).
So i'd suggest to add and evaluate the variable "CTEST_OUTPUT_ON_FAILURE" also from CTestCustom.cmake to print the output of failed tests. And, to make me really happy, it would be nice if i could specify CTEST_OUTPUT_ALL (new variable), to print _all_ test output :)
Currently, i specified a POST_TEST_STEP to just print Testing/Temporary/LastTest.log.tmp ... but i think this is really fragile...
|
|
|
(0036623)
|
Ela782
|
2014-08-16 16:54
|
|
|
|
(0039157)
|
Roman80
|
2015-07-20 03:28
|
|
As a workaround you could add the option "--output-on-failure" to the RUN_TESTS target.
.) Right click on the RUN_TESTS target
.) Select properties
.) Edit the "Command Line" parameters under "Configuration Properties - Build Events - Post-Build Event"
NOTE: This change is only temporary and are removed upon the next CMake configure run
Nevertheless it would be nice to add this "parameter" to the RUN_TESTS target and/or define a CMAKE VARIABLE where the user can decide to add it or not |
|
|
(0041398)
|
Kitware Robot
|
2016-06-10 14:27
|
|
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|