Adding tests

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
dubo-dubon-duponey
2021-01-14 13:50:54 -08:00
parent 9338d10a04
commit e301dfa7b1
33 changed files with 761 additions and 1 deletions

20
examples/tests/README.md Normal file
View File

@@ -0,0 +1,20 @@
# Testing
## TL;DR
```
# Get help
./test.sh --help
# Run all tests
# You can also just call ./test.sh with no argument
# Also, `make integration` does exactly that
./test.sh all
# Run one random dagger cue directory, with expectations on exit code, stdout, stderr
./test.sh fetch-git/nonexistent/ref --exit=1 --stdout=
```
By default, the dagger binary is expected to be found in ../../cmd/dagger/dagger relative to the test.sh script.
If you need to change this, pass along `DAGGER_BINARY=somewhere/dagger`