From 67717b8d9fa298385410354e08c1ed5b5da994ac Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Tue, 3 Jun 2014 10:40:11 -0400 Subject: [PATCH] escape TC message attrib for common selenium msg turns: [10:24:50][testing a failure] ##teamcity[testFailed name='testing a failure' message='can't find element #cantfindme'] [10:24:50][testing a failure] Property value not found Valid property list format is (name( )*=( )*'escaped_value'( )*)* where escape symbol is "|" into valid test/build failure msg: [10:31:41][testing a failure] can't find element #cantfindme --- src/canopy/reporters.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/canopy/reporters.fs b/src/canopy/reporters.fs index 924914c2..e810692f 100644 --- a/src/canopy/reporters.fs +++ b/src/canopy/reporters.fs @@ -103,7 +103,7 @@ type TeamCityReporter() = member this.pass () = consoleReporter.pass () member this.fail ex id ss = - consoleReporter.describe (String.Format("##teamcity[testFailed name='{0}' message='{1}']", id, ex.Message)) + consoleReporter.describe (String.Format("##teamcity[testFailed name='{0}' message='{1}']", id, ex.Message.Replace("'", "|'"))) consoleReporter.fail ex id ss member this.describe d =