Photo by Genaro ServĂn from Pexels |
The standard way to do this is to have the test runner create a XUnit compatible XML file and have the CI tool consume this file to produce the reports. Unfortunately, the junit.xml file created by the default Clojure test runner creates a junit.xml that does not follow the spec and Bitbucket doesn't report which tests failed.
After some research, I found that Kaocha does a much better job of creating a junit.xml that Bitbucket Pipeline can grok. In addition, it also supports code coverage which is a great bonus.
Here is the stanza for deps.edn to make it work:
No comments:
Post a Comment