diff options
Diffstat (limited to 'tests/stateless-journey.sh')
-rwxr-xr-x | tests/stateless-journey.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/stateless-journey.sh b/tests/stateless-journey.sh index a6e0fa5..95886d2 100755 --- a/tests/stateless-journey.sh +++ b/tests/stateless-journey.sh @@ -11,6 +11,7 @@ snapshot="$root/snapshots" fixtures="$root/fixtures" SUCCESSFULLY=0 +WITH_FAILURE=1 (with "a sample directory" (sandbox @@ -36,6 +37,12 @@ SUCCESSFULLY=0 expect_run ${SUCCESSFULLY} "$exe" . . dir ./dir/ ./dir/sub } ) + (when "specifying no subcommand and some of the directories don't exist" + it "produces a human-readable (metric) aggregate of the current directory, with total" && { + WITH_SNAPSHOT="$snapshot/failure-no-arguments-multiple-input-paths-some-not-existing" \ + expect_run ${WITH_FAILURE} "$exe" . . foo bar baz + } + ) ) ) |