Use Test Macros to data check cmd builders

Hi

I\m trying to use ##teamcity{testStarted name='testname'}, ##teamcity{testFinished name='testname'}
and ##teamcity{testFailed name='testname' message='failure message' details='stack trace'}
to make data check logs more readable.

It doesn't works. It just print this lines in output, without any test status indication.

6 comments

You should use [] instead of curly braces. Also make sure that only one message is printed on a single line and the message starts from the beginning of the line.

--
Pavel Sher

Edited by: Pavel Sher (Jetbrains) on May 22, 2008 12:38 AM

0

Thanks, but it still doesn't works.

Test bat file looks like.

ECHO ##teamcity\[testStarted name='%ResourceName%'\]
CheckResource.exe %ResourceName%
ECHO ##teamcity\[testFinished name='%ResourceName%'\]

In the output it prints

##teamcity\[testStarted name='Project/ReourseFolder/Resource.res'\]
check log .....
##teamcity\[testFinished name='Project/ReourseFolder/Resource.res'\]

Edited by: Alexander Shishenin on May 22, 2008 11:02 AM

0

What version of TeamCity do you use?

--
Pavel Sher

0

Service messages support is available since TeamCity 3.1, please try to upgrade to this version (do not forget to make a backup).

--
Pavel Sher

0

Please sign in to leave a comment.