mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-16 10:05:39 +02:00
Support for reporting skipped tests
- implemented by TeamCity reporter
This commit is contained in:
@@ -49,8 +49,16 @@ namespace Catch {
|
||||
prefs.shouldRedirectStdOut = true;
|
||||
return prefs;
|
||||
}
|
||||
|
||||
// !TBD: ignored tests
|
||||
|
||||
virtual void skipTest( TestCaseInfo const& testInfo ) {
|
||||
stream << "##teamcity[testIgnored name='"
|
||||
<< escape( testInfo.name ) << "'";
|
||||
if( testInfo.isHidden() )
|
||||
stream << " message='hidden test'";
|
||||
else
|
||||
stream << " message='test skipped because it didn't match the test spec'";
|
||||
stream << "]\n";
|
||||
}
|
||||
|
||||
virtual void noMatchingTestCases( std::string const& /* spec */ ) {}
|
||||
|
||||
|
Reference in New Issue
Block a user