An open API service indexing awesome lists of open source software.

https://github.com/byjpr/credo-junit

Command to convert Credo json output to JUnit
https://github.com/byjpr/credo-junit

circleci credo elixir junit report test

Last synced: 12 months ago
JSON representation

Command to convert Credo json output to JUnit

Awesome Lists containing this project

README

          

# 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

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