diff options
author | Justin Goshi <jgoshi@microsoft.com> | 2018-10-18 18:34:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-10 12:37:32 (GMT) |
commit | fc41a95f0803abb2b5daa4f0eb21cf38c625bd26 (patch) | |
tree | bcb027bb2f3a2bfe453b78b7a82a2c2c420fc833 /Source/cmCTest.h | |
parent | 7b81d8c21e0a0d8756f0afdc0530c2d06ee3bcd4 (diff) | |
download | CMake-fc41a95f0803abb2b5daa4f0eb21cf38c625bd26.zip CMake-fc41a95f0803abb2b5daa4f0eb21cf38c625bd26.tar.gz CMake-fc41a95f0803abb2b5daa4f0eb21cf38c625bd26.tar.bz2 |
CTest: Add --show-only[=format] option to print test info
format can be 'human' to print the current text format or 'json-v1' to
print the test object model in json format and is useful for IDEs who
want to gather information about the tests. Defaults to 'human' format.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 480204a..2b40ca3 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -215,6 +215,10 @@ public: /** Should we only show what we would do? */ bool GetShowOnly(); + bool GetOutputAsJson(); + + int GetOutputAsJsonVersion(); + bool ShouldUseHTTP10() { return this->UseHTTP10; } bool ShouldPrintLabels() { return this->PrintLabels; } @@ -507,6 +511,8 @@ private: t_TestingHandlers TestingHandlers; bool ShowOnly; + bool OutputAsJson; + int OutputAsJsonVersion; /** Map of configuration properties */ typedef std::map<std::string, std::string> CTestConfigurationMap; |