Error "orphan line" on build failure #8

Closed
ivaxer opened this Issue Feb 17, 2014 · 4 comments

Projects

None yet

3 participants

@ivaxer

go2xunit doesn't generate xml output when at least one package failed to build. Is it possible to handle such type of error?

go test output:

=== RUN TestUrlJoin
--- PASS: TestUrlJoin (0.00 seconds)
PASS
ok      common  0.002s
FAIL    node/config [build failed]
$ go2xunit -bamboo=true -input go.out
error: 5: orphan line

P.S. I didn't find in JUnit xsd how to mark "testsuite" as failed or errored.

@gato

you could check go test's errorlevel (if something fails it will be non zero), is not very specific but at least you will know something went wrong

@ivaxer

@gato Yes, I can. I opened this issue to show, that go2xunit can't convert go test output with build failure to xml. May be go2xunit should print more specific error message...

@tebeka
Owner

Thanks for reporting. I agree and will work on this soon.

Patches always welcomed 😉

@ivaxer

@tebeka ok :)

@tebeka tebeka closed this Feb 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment