0g-chain/cli_test/README.md

13 lines
461 B
Markdown
Raw Normal View History

2019-06-25 13:42:20 +00:00
# CLI Integration tests
2019-06-25 12:01:02 +00:00
2019-06-25 13:42:20 +00:00
Run the full suite:
2019-06-25 12:01:02 +00:00
```bash
2019-06-25 13:42:20 +00:00
go test -v -p 4 ./cli_test -tags cli_test
2019-06-25 12:01:02 +00:00
```
2019-06-25 13:42:20 +00:00
`-v` for verbose, `-p 4` to use 4 cores, `-tags cli_test` a build tag (specified in `cli_test.go`) to tell go not to ignore the package
2019-06-25 12:01:02 +00:00
2019-06-25 13:42:20 +00:00
> NOTE: While the full suite runs in parallel, some of the tests can take up to a minute to complete
2019-06-25 12:01:02 +00:00
2019-06-25 13:42:20 +00:00
> NOTE: The tests will use the `kvd` or `kvcli` binaries in your `$GOPATH/bin`. Or in `$BUILDDIR` if that env var is set.