jstemmer / go-junit-report

Convert Go test output to JUnit XML
MIT License
764 stars 222 forks source link

Does this integrate with Goconvey BDD test code? #81

Open MikeWarren2014 opened 5 years ago

MikeWarren2014 commented 5 years ago

I have stumbled upon, and recently made use of, the Goconvey BDD framework. It is, as BDD frameworks usually are, great. Unfortunately, the test reports are not exportable.

Will this tool run, and report any test fails on, Goconvey code?

chrischris292 commented 5 years ago

+1

jstemmer commented 2 years ago

go-junit-report currently doesn't support any output generated by third party test frameworks. Supporting other testing frameworks may be something to consider in the future.

tstraley commented 1 year ago

We use goconvey in our tests and execute our tests with go test -v 2>&1 | tee >(go-junit-report > test-report.xml). This gives the useful BDD formatted output, and still generates the xml report correctly, including test failures. No issues with go-junit-report v1.0.0.