summaryrefslogtreecommitdiffstats
path: root/tests/stateless-journey.sh
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-01 20:09:30 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-01 20:14:31 +0530
commitae0182f09c0e2c3c77298cb431421cbdc64c0fa8 (patch)
treedad6439c32112bc69ddcf510693c68dc69326e42 /tests/stateless-journey.sh
parenta53c2acb65457df740f3605124b9e42d363897de (diff)
Simplified handling of 'no paths given' casev1.1.0
Diffstat (limited to 'tests/stateless-journey.sh')
-rwxr-xr-xtests/stateless-journey.sh25
1 files changed, 20 insertions, 5 deletions
diff --git a/tests/stateless-journey.sh b/tests/stateless-journey.sh
index 5d444f7..5625035 100755
--- a/tests/stateless-journey.sh
+++ b/tests/stateless-journey.sh
@@ -18,12 +18,27 @@ WITH_FAILURE=1
cp -R "$fixtures/sample-01/" .
(with "no arguments"
(with "no given path"
- it "produces a human-readable (metric) aggregate of the current directory, without total" && {
- WITH_SNAPSHOT="$snapshot/success-no-arguments" \
- expect_run ${SUCCESSFULLY} "$exe"
- }
+ (with "no subcommand"
+ it "produces a human-readable (metric) aggregate of everything within the current directory, with total" && {
+ WITH_SNAPSHOT="$snapshot/success-no-arguments" \
+ expect_run ${SUCCESSFULLY} "$exe"
+ }
+ )
+ (with "the aggregate sub-command"
+ (with "no sorting option"
+ it "produces a human-readable (metric) aggregate of everything within the current directory, with total" && {
+ WITH_SNAPSHOT="$snapshot/success-no-arguments" \
+ expect_run ${SUCCESSFULLY} "$exe" aggregate
+ }
+ )
+ (with "sorting disabled"
+ it "produces a human-readable (metric) aggregate of everything within the current directory, alphabetically sorted, with total" && {
+ WITH_SNAPSHOT="$snapshot/success-no-arguments-no-sort" \
+ expect_run ${SUCCESSFULLY} "$exe" aggregate --no-sort
+ }
+ )
+ )
)
- ls
(with "multiple given paths"
(when "specifying the 'aggregate' subcommand"
(with "no option to adjust the total"