3 Commits

4 changed files with 41 additions and 3 deletions

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
/vendor
/bin
/release
/release
*-packr.go
packrd

View File

@ -2,7 +2,7 @@ build: pack
CGO_ENABLED=0 go build -mod vendor -v -o bin/junit2md ./cmd/junit2md
pack:
packr2
cd cmd/junit2md && packr2 -v
watch:
modd

View File

@ -2,6 +2,39 @@
Utilitaire de transformation de rapport de tests [JUnit](https://junit.org/) (un format courrant dans les frameworks de test) au format [Markdown](https://en.wikipedia.org/wiki/Markdown) via un template personnalisable.
## Usage
```
junit2md <raport_junit1.xml> <raport_junit1.xml> <etc>
```
La version Markdown sera envoyée sur la sortie standard.
## Démarrer avec les sources
### Dépendances de développement
- [Go >= 1.13.4](https://golang.org/)
- [modd](https://github.com/cortesi/modd)
- [packr2](https://github.com/gobuffalo/packr)
### Procédure d'amorçage
```
git clone https://forge.cadoles.com/Cadoles/junit2md.git
cd junit2md
make watch
```
### Générer une release
```
make release
```
Les archives contenant les releases seront disponibles dans le répertoire `release/`.
## Licence
[GPL-3.0](./LICENSE)

View File

@ -13,7 +13,8 @@
**Total duration**: {{ .Totals.Duration }}
### Details
<details>
<summary>See details</summary>
| Status | Name | Class |
|--------|------|-------|
@ -27,6 +28,8 @@
{{- end -}}
{{end}}
</details>
{{if or (gt .Totals.Error 0) (gt .Totals.Failed 0) }}
#### Errors
{{end}}