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
- Host: GitHub
- URL: https://github.com/byjpr/credo-junit
- Owner: byjpr
- Created: 2021-07-09T00:06:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-10T12:45:26.000Z (almost 5 years ago)
- Last Synced: 2025-03-28T18:51:56.179Z (about 1 year ago)
- Topics: circleci, credo, elixir, junit, report, test
- Language: Elixir
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```