summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GoogleTest/skip_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* GoogleTest: Parse discovered test list from JSON output if supportedOttmar Zittlau2025-07-071-1/+28
| | | | | | | | | | | | | | | | | | | The --gtest_output=json option is supported from gtest 1.8.1 onwards. Earlier versions output a warning about it being an unrecognized option, and builds that #define GTEST_HAS_FILE_SYSTEM 0 output an error about it being unsupported, but in both cases still continue outputting the same plain text output as before and return an exit code of 0. We now add that option and check for whether the JSON file is generated, falling back to parsing the plain text output as before if it isn't or if the environment variable NO_GTEST_JSON_OUTPUT is set. The fake executor binaries are sensitive to parameter order. This commit adds --gtest_output:json arguments to a number of tests added for the new JSON parser. The argument order has been adjusted for the invocations of those binaries. Co-Authored-By: Craig Scott <craig.scott@crascit.com> Co-Authored-By: Dennis Lambe Jr. <malsyned@malsyned.net>
* GoogleTest: Reports skipped test with gtest_add_testsDavidPerretSN2022-11-071-0/+7
| | | | | | Skipped GTests were reported as success when tests where added with gtest_add_tests. This fixes this behaviour. Fixes: #24130
* GoogleTest: Add testcase for skipped testsAlexander Stein2020-04-101-0/+18
This simply runs a mocked test case which uses the prefix for signaling a skipped test. CTest's output is checked for a skipped test result.