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:
Berkus Karchebnyy 2019-02-04 13:39:16 +02:00 committed by Jozef Grajciar
parent 7f229b4ff1
commit dd3d27de57
1 changed files with 1 additions and 1 deletions

View File

@ -42,9 +42,9 @@ namespace Catch {
bool assertionEnded( AssertionStats const& _assertionStats ) override {
++counter;
stream << "# " << currentTestCaseInfo->name << std::endl;
AssertionPrinter printer( stream, _assertionStats, counter );
printer.print();
stream << " # " << currentTestCaseInfo->name ;
stream << std::endl;
return true;