summaryrefslogtreecommitdiffstats
path: root/tests/stateless-journey.sh
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-01 12:36:24 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-01 12:36:24 +0530
commitc1cbcf355755fbd1ca6124cdba3b8e361a7bebf2 (patch)
tree4f2120ad0e7546423bec08711df84984fc0bfd6c /tests/stateless-journey.sh
parentc50332cead2688e40de192e1b47e50a662763a78 (diff)
Better error reporting
Diffstat (limited to 'tests/stateless-journey.sh')
-rwxr-xr-xtests/stateless-journey.sh7
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
+ }
+ )
)
)