summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-01 12:43:00 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-01 12:43:52 +0530
commit961b743773da2a5112bd4ab70554c50b03ded3ad (patch)
tree08bc22433014e503e3bee1ffd86ae0be3cb48c5b /tests
parentc1cbcf355755fbd1ca6124cdba3b8e361a7bebf2 (diff)
Add --no-total option
Diffstat (limited to 'tests')
-rw-r--r--tests/snapshots/success-no-arguments-multiple-input-paths-no-total5
-rwxr-xr-xtests/stateless-journey.sh18
2 files changed, 18 insertions, 5 deletions
diff --git a/tests/snapshots/success-no-arguments-multiple-input-paths-no-total b/tests/snapshots/success-no-arguments-multiple-input-paths-no-total
new file mode 100644
index 0000000..6ca39e6
--- /dev/null
+++ b/tests/snapshots/success-no-arguments-multiple-input-paths-no-total
@@ -0,0 +1,5 @@
+1.26 MB .
+1.26 MB .
+1.26 MB dir
+1.26 MB ./dir/
+256.00 KB ./dir/sub \ No newline at end of file
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" && {