mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Fix TAP protocol reporter
According to TAP protocol version 13, the comments after the test name only may contain Directives - # TODO or # SKIP. We should put the comment (aka suite name) on a separate line before the test. See http://testanything.org/tap-version-13-specification.html#directives
This commit is contained in:
parent
7f229b4ff1
commit
dd3d27de57
@ -42,9 +42,9 @@ namespace Catch {
|
|||||||
bool assertionEnded( AssertionStats const& _assertionStats ) override {
|
bool assertionEnded( AssertionStats const& _assertionStats ) override {
|
||||||
++counter;
|
++counter;
|
||||||
|
|
||||||
|
stream << "# " << currentTestCaseInfo->name << std::endl;
|
||||||
AssertionPrinter printer( stream, _assertionStats, counter );
|
AssertionPrinter printer( stream, _assertionStats, counter );
|
||||||
printer.print();
|
printer.print();
|
||||||
stream << " # " << currentTestCaseInfo->name ;
|
|
||||||
|
|
||||||
stream << std::endl;
|
stream << std::endl;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user