Skip to content

Commit 33489aa

Browse files
committed
add instructions to glob golang packages
the command can be piped
1 parent c67207a commit 33489aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jekyll/_cci2/parallelism-faster-jobs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,7 @@ suite. These applications are not developed or supported by CircleCI. Please che
227227
a helper CLI tool that queries `phpunit.xml` files to get a list of test
228228
filenames and print them. This is useful if you want to split tests to run
229229
them in parallel based on timings on CI tools.
230+
- **[go list](https://golang.org/cmd/go/#hdr-List_packages_or_modules)** - Use the built-in Go command `go list ./...` to glob Golang packages. This allows splitting package tests across multiple containers.
231+
```
232+
go test -v $(go list ./... | circleci tests split)
233+
```

0 commit comments

Comments
 (0)