diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-01 12:43:00 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-01 12:43:52 +0530 |
commit | 961b743773da2a5112bd4ab70554c50b03ded3ad (patch) | |
tree | 08bc22433014e503e3bee1ffd86ae0be3cb48c5b /tests/stateless-journey.sh | |
parent | c1cbcf355755fbd1ca6124cdba3b8e361a7bebf2 (diff) |
Add --no-total option
Diffstat (limited to 'tests/stateless-journey.sh')
-rwxr-xr-x | tests/stateless-journey.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/stateless-journey.sh b/tests/stateless-journey.sh index 95886d2..bd31903 100755 --- a/tests/stateless-journey.sh +++ b/tests/stateless-journey.sh @@ -25,11 +25,19 @@ WITH_FAILURE=1 ) ls (with "multiple given paths" - (when "specifying a subcommand" - it "produces a human-readable (metric) aggregate of the current directory, with total" && { - WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths" \ - expect_run ${SUCCESSFULLY} "$exe" aggregate . . dir ./dir/ ./dir/sub - } + (when "specifying the 'aggregate' subcommand" + (with "no option to adjust the total" + it "produces a human-readable (metric) aggregate of the current directory, with total" && { + WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths" \ + expect_run ${SUCCESSFULLY} "$exe" aggregate . . dir ./dir/ ./dir/sub + } + ) + (with "the --no-total option set" + it "produces a human-readable (metric) aggregate of the current directory, without total" && { + WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths-no-total" \ + expect_run ${SUCCESSFULLY} "$exe" aggregate --no-total . . dir ./dir/ ./dir/sub + } + ) ) (when "specifying no subcommand" it "produces a human-readable (metric) aggregate of the current directory, with total" && { |