This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests
Andrea Luzzardi feda737d71 tests: convert stdlib to bats
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-15 16:09:19 -07:00
..
cli input: support file/stdin source for text/json/yaml 2021-04-15 13:04:52 -07:00
compute added comment about always flag + cue fmt 2021-04-15 12:34:15 -07:00
examples/react tests: fix react example test 2021-04-08 18:48:23 -07:00
ops tests: ops: use proper imports 2021-04-14 16:44:34 -07:00
stdlib tests(stdlib/k8s/helm): test basic helm chart 2021-04-15 14:24:42 +02:00
cli.bats input: support file/stdin source for text/json/yaml 2021-04-15 13:04:52 -07:00
compute.bats tests: migrate compute tests to bats 2021-04-15 15:55:51 -07:00
examples.bats test: react example: use dagger up instead of compute 2021-04-15 15:09:39 -07:00
helpers.bash tests: convert stdlib to bats 2021-04-15 16:09:19 -07:00
ops.bats tests: migrate ops test to bats 2021-04-14 16:15:04 -07:00
package.json tests: improve bats/gh integration 2021-04-15 00:48:49 -07:00
README.md
stdlib.bats tests: convert stdlib to bats 2021-04-15 16:09:19 -07:00
yarn.lock tests: use bats for integration tests 2021-04-14 15:18:34 -07:00

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