https://github.com/jhberges/go-test2json2md
Utility that renders Go test2json format to Markdown
https://github.com/jhberges/go-test2json2md
cicd github-actions golang testing-tools testreport
Last synced: 5 months ago
JSON representation
Utility that renders Go test2json format to Markdown
- Host: GitHub
- URL: https://github.com/jhberges/go-test2json2md
- Owner: jhberges
- License: apache-2.0
- Created: 2023-01-12T13:52:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-12T09:56:47.000Z (over 2 years ago)
- Last Synced: 2024-06-19T18:02:11.607Z (almost 2 years ago)
- Topics: cicd, github-actions, golang, testing-tools, testreport
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-test2json2md
Small utility to produce test report in markdown format, primarily intended for GitHub Actions.
Uses the test2json event output from `go test --json` and generates a summary.
## Usage
```shell
$ gotest2json2md
```
Example:
```shell
$ go test ./... -json > my-test-report.json
$ gotest2jsonmd my-test-report.json
$ head my-test-report.json.md
# Test report
Of 122 tests run there were 120 passes, 1 fails, 1 skips.
# PACKAGE github.com/octocat/super-software/v2/cmd
Console output
```
See output in action for example.
Inspired by the awesome [gotestsum](https://github.com/gotestyourself/gotestsum) tool.