smockle-archive / tap-teamcity

Formats TAP output for TeamCity.
ISC License
8 stars 5 forks source link

Not handling failed tests #11

Open Poetro opened 7 years ago

Poetro commented 7 years ago

I have the following TAP output

1..4
ok 1 - Input file opened
not ok 2 - First line of the input valid
ok 3 - Read the rest of the file
not ok 4 - Summarized correctly # TODO Not written yet

And using 1.2.1.

This is the output I get:

##teamcity[testStarted name='Input file opened' captureStandardOutput='true']
##teamcity[testFinished name='Input file opened' duration='1']
##teamcity[testStarted name='First line of the input valid' captureStandardOutput='true']
##teamcity[testStarted name='Read the rest of the file' captureStandardOutput='true']
##teamcity[testFinished name='Read the rest of the file' duration='1']
##teamcity[testStarted name='Summarized correctly # TODO Not written yet' captureStandardOutput='true']

Which obviously does not highlight that any of the tests have failed. And that TAP input is totally valid, as it is from the TAP site itself.

smockle commented 7 years ago

Hi @Poetro, thanks for reporting this! Although I’ve stopped using TeamCity and no longer actively develop this project, I’d happily review and merge a PR that resolves this issue.

If you’d rather use actively-developed projects, you might want to explore tap-mocha-reporter together with mocha-teamcity-reporter.