Skip to content

Commit

Permalink
developing ws command with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmccracken committed Sep 19, 2024
1 parent 64e14b8 commit cd9d52e
Show file tree
Hide file tree
Showing 2 changed files with 421 additions and 34 deletions.
23 changes: 23 additions & 0 deletions test/test.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
setup (){
load 'test_helper/bats-support/load'
load 'test_helper/bats-assert/load'

# get the containing directory of this file
# use $BATS_TEST_FILENAME instead of ${BASH_SOURCE[0]} or $0,
# as those will point to the bats executable's location or the preprocessed file respectively
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
# make executables in src/ visible to PATH
PATH="$DIR/..:$PATH"
}

@test "supports help flag" {
run ws -h
assert_output --partial 'ws usage:'
}



@test "supports help flag" {
run ws -h
assert_output --partial 'ws usage:'
}
Loading

0 comments on commit cd9d52e

Please sign in to comment.