Convert Credo.json files into JUnit XML. This tool was primarily made to produce JUnit consumable tests reports for CircleCI.
- Add credo_junit to your mix.exs
{:credo_junit, git: "https://github.com/byjpr/credo-junit", only: [:dev, :test], runtime: false}
- Run Credo and save output to reports/credo.json
$ mix credo $1 --format json >> reports/credo.json
- Convert credo.json to reports/credo.xml
mix credo_to_junit
def deps do
[
{:credo_junit, git: "https://github.com/byjpr/credo-junit", only: [:dev, :test], runtime: false}
]
end