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
Include suite name in junit classname attrib for grouping in jenkins
- Commit
69ff7fcf4243e2b874dda9a8ab34993c31c879f1- Author
- Thomas Sondergaard ·
- Parents
a6b03031ba56
Changes
include/reporters/catch_reporter_junit.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/reporters/catch_reporter_junit.hpp b/include/reporters/catch_reporter_junit.hpp index 2b5a9bd5..5ade59b5 100644 --- a/include/reporters/catch_reporter_junit.hpp +++ b/include/reporters/catch_reporter_junit.hpp @@ -150,6 +150,10 @@ namespace Catch { if ( className.empty() ) className = "global"; } + + if ( !m_config->name().empty() ) + className = m_config->name() + "." + className; + writeSection( className, "", rootSection ); }