/credo-junit

Command to convert Credo json output to JUnit

Primary LanguageElixir

CredoJunit

Convert Credo.json files into JUnit XML. This tool was primarily made to produce JUnit consumable tests reports for CircleCI.

Usage

  1. Add credo_junit to your mix.exs {:credo_junit, git: "https://github.com/byjpr/credo-junit", only: [:dev, :test], runtime: false}
  2. Run Credo and save output to reports/credo.json $ mix credo $1 --format json >> reports/credo.json
  3. Convert credo.json to reports/credo.xml mix credo_to_junit

Installation

def deps do
  [
    {:credo_junit, git: "https://github.com/byjpr/credo-junit", only: [:dev, :test], runtime: false}
  ]
end