diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-01 12:00:09 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-01 12:00:09 +0530 |
commit | 7dc718bd03f7f669638d87b4c5fee67700f045ca (patch) | |
tree | cd882b16555a6454d7ddef93b21d6cd1b4e3e494 /tests/stateless-journey.sh | |
parent | 6db07e2e69f7f674191311719054a245e8c8b886 (diff) |
Support for various byte formats
Diffstat (limited to 'tests/stateless-journey.sh')
-rwxr-xr-x | tests/stateless-journey.sh | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/stateless-journey.sh b/tests/stateless-journey.sh index b170af3..d692b14 100755 --- a/tests/stateless-journey.sh +++ b/tests/stateless-journey.sh @@ -15,11 +15,26 @@ SUCCESSFULLY=0 (with "a sample directory" (sandbox cp -R "$fixtures/sample-01" . - (when "running the program without arguments" - it "produces a human-readable aggregate of the current directory" && { + (with "no arguments" + it "produces a human-readable (metric) aggregate of the current directory, without total" && { WITH_SNAPSHOT="$snapshot/success-no-arguments" \ expect_run ${SUCCESSFULLY} "$exe" } ) + + (with "the byte format set" + (with "human-binary" + it "produces a human-readable aggregate of the current directory, without total" && { + WITH_SNAPSHOT="$snapshot/success-bytes-binary" \ + expect_run ${SUCCESSFULLY} "$exe" --format humanbinary + } + ) + (with "bytes" + it "produces a human-readable aggregate of the current directory, without total" && { + WITH_SNAPSHOT="$snapshot/success-bytes-only" \ + expect_run ${SUCCESSFULLY} "$exe" --format bytes + } + ) + ) ) ) |