From 4a05d42219fc4036251b7c74459c37f3eeb5a821 Mon Sep 17 00:00:00 2001 From: tomeichlersmith Date: Mon, 6 May 2024 21:13:23 -0500 Subject: [PATCH] fixup norunner testing for exploration of the command line installs --- ci/test | 2 +- test/config.bats | 58 ++++++++++++++++++++++++++---------------------- 2 files changed, 32 insertions(+), 28 deletions(-) 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" +} +