From dd3d27de5787da803e031b561196905e59e681bc Mon Sep 17 00:00:00 2001 From: Berkus Karchebnyy Date: Mon, 4 Feb 2019 13:39:16 +0200 Subject: [PATCH] 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 --- include/reporters/catch_reporter_tap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/reporters/catch_reporter_tap.hpp b/include/reporters/catch_reporter_tap.hpp index ccc4051b..1bfe4f5e 100644 --- a/include/reporters/catch_reporter_tap.hpp +++ b/include/reporters/catch_reporter_tap.hpp @@ -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;