tests: improve bats/gh integration

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-04-15 00:19:17 -07:00
parent e45619d42f
commit d46be324e5
4 changed files with 13 additions and 1 deletions

View File

@@ -7,6 +7,9 @@ common_setup() {
DAGGER="${DAGGER_BINARY:-$TESTDIR/../cmd/dagger/dagger}"
export DAGGER
DAGGER_LOG_FORMAT="pretty"
export DAGGER_LOG_FORMAT
DAGGER_STORE="$(mktemp -d -t dagger-store-XXXXXX)"
export DAGGER_STORE
}

View File

@@ -1,7 +1,7 @@
{
"license": "Apache-2.0",
"scripts": {
"test": "bats ."
"test": "bats --report-formatter junit ."
},
"devDependencies": {
"bats": "https://github.com/bats-core/bats-core.git",