-
-
Notifications
You must be signed in to change notification settings - Fork 681
Description
Hello,
I know there are already a couple of issues and some discussions related to that topic however I wanted to ask this question. Since v2 Ginkgo produces its own json format as an output of the test results.
We are using Sonarqube to report back test coverage and test reports and unfortunately, at least as far as I know, Sonar expects the test reports in the test2json format produced by go test
:
Path to test execution reports generated by Go with '-json' key, available since go1.10 (e.g.: go test -json > test-report.out).
One the one hand we could only use go test
to get the desired outputs for test reports & coverage however on the other hand the output Ginkgo produces is just much more detailed that we also would like to see (in our CI pipeline). Therefore, our mitigation currently is to execute both steps (go test
& ginkgo
) to have the best of both but as said, should only be a mitigation.
So, my questions would be:
- Someone else have already faced & solved this issue? Could a
ReportAfterSuite
convert the report back into the test2json format? - Would it be a feasible that Ginkgo can bring back the support for a test2json output format?