Skip to content

Commit

Permalink
Add build-tags option
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkDrim committed Jan 22, 2024
1 parent c76ae94 commit 28e4f8e
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 341 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@

The original version of the library has not been supported for more than three years.

This version has some improvements:
**This version has some improvements:**

- support latest version of Golang (using embed feature)
- ability to split groups by package (instead of splitting by number of tests) (-p option)
- ability to read test results from file (-i option)
- additional logging: errors with additional context are now printed to stdout
- ❗️support build tags (original version does not support build tags and returns an error: exit status 1) (-b option)

## Installation

Expand Down Expand Up @@ -102,13 +105,14 @@ Available Commands:
version Prints the version number of go-test-report
Flags:
-g, --groupSize int the number of tests per test group indicator (default 20)
-h, --help help for go-test-report
-i, --input string the JSON input file
-o, --output string the HTML output file (default "test_report.html")
-s, --size string the size (in pixels) of the clickable indicator for test result groups (default "24")
-t, --title string the title text shown in the test report (default "go-test-report")
-v, --verbose while processing, show the complete output from go test
-g, --groupSize int the number of tests per test group indicator (default 20)
-h, --help help for go-test-report
-i, --input string the JSON input file
-o, --output string the HTML output file (default "test_report.html")
-b, --build-tags string the golang build tags (if all tests files contains build tag - this option is mandatory)
-s, --size string the size (in pixels) of the clickable indicator for test result groups (default "24")
-t, --title string the title text shown in the test report (default "go-test-report")
-v, --verbose while processing, show the complete output from go test
Use "go-test-report [command] --help" for more information about a command.
```
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21

require (
github.com/spf13/cobra v1.8.0
github.com/stretchr/testify v1.6.1
github.com/stretchr/testify v1.7.0
golang.org/x/sync v0.6.0
)

Expand Down
Loading

0 comments on commit 28e4f8e

Please sign in to comment.