tests: add instructions to run a single test

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-06-07 11:29:01 -07:00
parent e3ee7f2568
commit 15ee983b0f

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>"
```