hashicorp-forge/Go Test Split
Given some splitting parameters (total slices and slice index), lists a subset of tests suitable for passing into go test -run.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| total | The total number of slices that will be generated | yes | 1 |
| index | The zero-based index of the current slice to generate | yes | 0 |
| packages | The packages string to use when executing `go test <packages> -list .` to find tests. Defaults to './...' (all packages recursively) | no | — |
| list | The list pattern to use when executing `go test <packages> -list <list>`. Defaults to '.' (all tests) | no | — |
| flags | Additional flags to pass to `go test <packages> -list . | no | — |
| junit-summary | Path to a JUnit summary XML file that can help optimize test slicing. See the JUnit example in the README. | no | — |
| working-directory | The working directory in which to list the tests. Defaults to the GitHub workspace. | no | — |
Outputs
| name | description |
|---|---|
| run | A slice of tests, suitable to pass into the -run argument of go test |