tebeka / go2xunit

Convert "go test" output to xunit compatible (used in Jenkins/Hudson)
MIT License
162 stars 46 forks source link

subtest failures are reported twice #45

Open tamird opened 7 years ago

tamird commented 7 years ago

In short, a failing subtest produces a failure message for itself as well as its parent. This is problematic when e.g. using automation to file issues as we do in CockroachDB, because it results in two issues for a single failure.

A possible solution is to introduce a configuration option in the parser that only reports failures in "leaf" tests.

See https://github.com/cockroachdb/cockroach/issues/12444.

tebeka commented 7 years ago

Thanks for reporting. Will try to work on it this week.