Skip to content

Commit 68a0724

Browse files
committed
add readme
1 parent 8760e02 commit 68a0724

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# go-test-action
2+
3+
GitHub Action for running `go test ...` and getting rich summary and annotations as output.
4+
5+
Powered by [Job Summaries](https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/), this Action will generate a convenient interactive viewer for tests based on Go's [test2json](https://pkg.go.dev/cmd/test2json) output.
6+
7+
## Example
8+
9+
Tests are organized per package, with a brief summary of individual test results:
10+
11+
![summary overview](docs/img/overview.png)
12+
13+
Expand for per-test (with subtest) results and to view raw test output:
14+
15+
![summary expanded](docs/img/expanded.png)
16+
17+
## Inputs
18+
19+
- `moduleDirectory` (optional): relative path to the directory containing the `go.mod` of the module you wish to test
20+
- Default: `.`
21+
- `testArguments` (optional): arguments to pass to `go test`, `-json` will be prepended
22+
- Default: `./...`
23+

docs/img/expanded.png

223 KB
Loading

docs/img/overview.png

354 KB
Loading

0 commit comments

Comments
 (0)