Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Add test for --libidentify command line flag

Commit
d27d580d0b7b2cf7cce746ee16abc8728472b250
Author
Martin Hořeňovský ·
Parents
6da00c1b64b0

Files · Download .tar.gz

Changes

 include/internal/catch_session.cpp | 2 +-
 projects/CMakeLists.txt            | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/internal/catch_session.cpp b/include/internal/catch_session.cpp
index 13aaeec4..94db4597 100644
--- a/include/internal/catch_session.cpp
+++ b/include/internal/catch_session.cpp
@@ -175,7 +175,7 @@ namespace Catch {
     }
     void Session::libIdentify() {
         Catch::cout()
-                << std::left << std::setw(16) << "description: " << "A Catch test executable\n"
+                << std::left << std::setw(16) << "description: " << "A Catch2 test executable\n"
                 << std::left << std::setw(16) << "category: " << "testframework\n"
                 << std::left << std::setw(16) << "framework: " << "Catch Test\n"
                 << std::left << std::setw(16) << "version: " << libraryVersion() << std::endl;
diff --git a/projects/CMakeLists.txt b/projects/CMakeLists.txt
index 3e506847..e54f56ff 100644
--- a/projects/CMakeLists.txt
+++ b/projects/CMakeLists.txt
@@ -424,6 +424,9 @@ set_tests_properties(RegressionCheck-1670 PROPERTIES PASS_REGULAR_EXPRESSION "Pa
 add_test(NAME VersionCheck COMMAND $<TARGET_FILE:SelfTest> -h)
 set_tests_properties(VersionCheck PROPERTIES PASS_REGULAR_EXPRESSION "Catch v${PROJECT_VERSION}")
 
+add_test(NAME LibIdentityTest COMMAND $<TARGET_FILE:SelfTest> --libidentify)
+set_tests_properties(LibIdentityTest PROPERTIES PASS_REGULAR_EXPRESSION "description:    A Catch2 test executable")
+
 
 if (CATCH_USE_VALGRIND)
     add_test(NAME ValgrindRunTests COMMAND valgrind --leak-check=full --error-exitcode=1 $<TARGET_FILE:SelfTest>)