Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Fixed escaping of ' in TeamCity reporter

Commit
3e0c5018123e7e32b3c35f4169cbdca4bcb8f332
Author
Phil Nash ·
Parents
1cbc4f2c9c4e

Files · Download .tar.gz

Changes

 include/reporters/catch_reporter_teamcity.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/reporters/catch_reporter_teamcity.hpp b/include/reporters/catch_reporter_teamcity.hpp
index 737a8195..0647244f 100644
--- a/include/reporters/catch_reporter_teamcity.hpp
+++ b/include/reporters/catch_reporter_teamcity.hpp
@@ -32,7 +32,7 @@ namespace Catch {
         static std::string escape( std::string const& str ) {
             std::string escaped = str;
             replaceInPlace( escaped, "|", "||" );
-            replaceInPlace( escaped, "\'", "|\'" );
+            replaceInPlace( escaped, "'", "|'" );
             replaceInPlace( escaped, "\n", "|n" );
             replaceInPlace( escaped, "\r", "|r" );
             replaceInPlace( escaped, "[", "|[" );
@@ -56,7 +56,7 @@ namespace Catch {
             if( testInfo.isHidden() )
                 stream << " message='hidden test'";
             else
-                stream << " message='test skipped because it didn't match the test spec'";
+                stream << " message='test skipped because it didn|'t match the test spec'";
             stream << "]\n";
         }