diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-01 14:27:52 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-01 14:27:52 +0530 |
commit | f8c3ba29134af08ea7b70b4fe3951307c6be6e3a (patch) | |
tree | c34182c60235def2f99ca2b92bc42e7da0d046ba /tests/stateless-journey.sh | |
parent | e7da7843ad7894a3560b4d70076a74798404da94 (diff) |
Sort by size in bytes by default; can be turned off for immediate feedback
Diffstat (limited to 'tests/stateless-journey.sh')
-rwxr-xr-x | tests/stateless-journey.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/stateless-journey.sh b/tests/stateless-journey.sh index bd31903..1cd0fa9 100755 --- a/tests/stateless-journey.sh +++ b/tests/stateless-journey.sh @@ -27,26 +27,32 @@ WITH_FAILURE=1 (with "multiple given paths" (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" && { + it "produces a human-readable aggregate, 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" && { + it "produces a human-readable aggregate, without total" && { WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths-no-total" \ expect_run ${SUCCESSFULLY} "$exe" aggregate --no-total . . dir ./dir/ ./dir/sub } ) + (with "the --no-sort option set" + it "produces a human-readable aggregate, sorted in order specified on the command-line" && { + WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths-no-sort" \ + expect_run ${SUCCESSFULLY} "$exe" aggregate --no-sort . . dir ./dir/ ./dir/sub + } + ) ) (when "specifying no subcommand" - it "produces a human-readable (metric) aggregate of the current directory, with total" && { + it "produces a human-readable aggregate" && { WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths" \ 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" && { + it "produces a human-readable aggregate, with the number of errors per root" && { WITH_SNAPSHOT="$snapshot/failure-no-arguments-multiple-input-paths-some-not-existing" \ expect_run ${WITH_FAILURE} "$exe" . . foo bar baz } |