mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
Modified team city reporter to report testIgnored if it was skipped, eg due to the [mayfail] tag
This commit is contained in:
parent
f666f5f0ae
commit
ede3dd13fa
@ -134,11 +134,22 @@ namespace Catch {
|
||||
" " << result.getExpandedExpression() << "\n";
|
||||
}
|
||||
|
||||
// If we're allowing this to fail, report it as an ignored test in team city
|
||||
if (currentTestCaseInfo->okToFail())
|
||||
{
|
||||
stream << "##teamcity[testIgnored"
|
||||
<< " name='" << escape(currentTestCaseInfo->name) << "'"
|
||||
<< " message='" << escape(std::string("[FailedButIgnored] ") + msg.str()) << "'"
|
||||
<< "]\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
stream << "##teamcity[testFailed"
|
||||
<< " name='" << escape( currentTestCaseInfo->name )<< "'"
|
||||
<< " message='" << escape( msg.str() ) << "'"
|
||||
<< "]\n";
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user