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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
totalThe total number of slices that will be generatedyes1
indexThe zero-based index of the current slice to generateyes0
packagesThe packages string to use when executing `go test <packages> -list .` to find tests. Defaults to './...' (all packages recursively)no
listThe list pattern to use when executing `go test <packages> -list <list>`. Defaults to '.' (all tests)no
flagsAdditional flags to pass to `go test <packages> -list .no
junit-summaryPath to a JUnit summary XML file that can help optimize test slicing. See the JUnit example in the README.no
working-directoryThe working directory in which to list the tests. Defaults to the GitHub workspace.no
namedescription
runA slice of tests, suitable to pass into the -run argument of go test