diff --git a/ci/test b/ci/test index df262cd..787bb0c 100755 --- a/ci/test +++ b/ci/test @@ -111,7 +111,7 @@ fi for runner in ${runners}; do _denv_info "Testing denv with '${runner}'" if [ "${runner}" = "norunner" ]; then - DENV_RUNNER="${runner}" ./test/bats/bin/bats --filter "norunner" test/ + DENV_RUNNER="${runner}" ./test/bats/bin/bats --filter-tags "norunner" test/ else DENV_RUNNER="${runner}" ./test/bats/bin/bats test/ fi diff --git a/test/config.bats b/test/config.bats index bd1beed..27f2173 100644 --- a/test/config.bats +++ b/test/config.bats @@ -24,33 +24,6 @@ teardown() { assert_output } -@test "basic check run" { - run denv check - assert_output --partial "denv would run with '${DENV_RUNNER}'" -} - -@test "quiet check run" { - run denv check --quiet - refute_output -} - -@test "check fails when using unsupported runner" { - export DENV_RUNNER=dne - run -3 denv check - assert_output --partial "runner is not supported by denv" -} - -@test "check that we are in a workspace" { - run denv check --workspace - assert_output --partial "Found denv_workspace" -} - -@test "check that we are not in a workspace" { - rm -r .denv - run -4 denv check --workspace - assert_output --partial "Unable to deduce a denv workspace" -} - @test "print config" { run denv config print assert_line --index 0 "denv_workspace=\"${PWD}\"" @@ -81,3 +54,34 @@ teardown() { denv config network off assert_file_contains .denv/config '^denv_network="false"$' } + +# the rest do not support norunner +# bats file_tags= + +@test "basic check run" { + run denv check + assert_output --partial "denv would run with '${DENV_RUNNER}'" +} + +@test "quiet check run" { + run denv check --quiet + refute_output +} + +@test "check fails when using unsupported runner" { + export DENV_RUNNER=dne + run -3 denv check + assert_output --partial "runner is not supported by denv" +} + +@test "check that we are in a workspace" { + run denv check --workspace + assert_output --partial "Found denv_workspace" +} + +@test "check that we are not in a workspace" { + rm -r .denv + run -4 denv check --workspace + assert_output --partial "Unable to deduce a denv workspace" +} +