Merge pull request #578 from aluzzardi/test-single

tests: add instructions to run a single test
This commit is contained in:
Andrea Luzzardi
2021-06-07 13:15:24 -07:00
committed by GitHub

View File

@@ -23,3 +23,11 @@ yarn test
By default, the `dagger` binary is expected to be found in `../cmd/dagger/dagger` relative to the `tests` directory. By default, the `dagger` binary is expected to be found in `../cmd/dagger/dagger` relative to the `tests` directory.
If you need to change this, pass along `DAGGER_BINARY=somewhere/dagger` If you need to change this, pass along `DAGGER_BINARY=somewhere/dagger`
## Run a single test
To run a single test:
```shell
make && ./tests/node_modules/.bin/bats "./tests/<TESTFILE>.bats" -f "<TESTNAME>"
```