-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escape reserved characters teamcity reporter messages #150
Conversation
Teamcity fails to report tests which contain an unescaped reserved character in the message text. Now the teamcity reporter escapes each of these characters
@@ -55,3 +61,7 @@ TeamcityReporter <- setRefClass("TeamcityReporter", contains = "Reporter", | |||
} | |||
) | |||
) | |||
|
|||
escapedString <- function(s) { | |||
gsub("(['|]|\\[|\\])", "|\\1", s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please name this teamcity_escape
?
function name changed to teamcity_escape as requested |
And can you please add a bullet to NEWS? |
added to NEWS |
Thanks - had to merge by hand. |
Since you're familiar with teamcity - is there a standard way to report skipped tests? |
The message ##teamcity[testIgnored name='testName' message='ignore comment'] Will inform teamcity that the test ‘testName’ existed but was ignored. This replaces the usual test started/ended messages |
Thanks - I just did a fairly major refactoring of the teamcity reporter. Would you mind taking a look? It looks ok to me on casual inspection of the the output. |
Looks good to me |
Teamcity fails to report tests which contain an unescaped reserved character in the message text.
This means that TeamCity does not report all tests, and can miss failed tests.
Now the TeamCity reporter escapes each of these characters in its messages to TeamCity.