Skip to content

Commit

Permalink
added integration test for setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
hattan committed Mar 8, 2021
1 parent b072419 commit b94a1dc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ignore locally installed shArg
.sh_arg
Empty file removed 0
Empty file.
2 changes: 1 addition & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ if [ ! -d $SH_ARG_BASE ]; then
fi

if [ ! -f "$SH_ARG_BASE/shArg.sh" ]; then
wget --directory-prefix=$SH_ARG_BASE https://raw.githubusercontent.com/hattan/shArg/scripts/shArg.sh
wget --quiet --directory-prefix=$SH_ARG_BASE https://raw.githubusercontent.com/hattan/shArg/main/scripts/shArg.sh
fi
10 changes: 10 additions & 0 deletions spec/integration/setup_spec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Describe 'shArg'

Context "Setup script tests"
It 'should create a .sh_arg folder'
When run script scripts/setup.sh
Path shArg-file=.sh_arg/shArg.sh
The path shArg-file should be exist
End
End
End

0 comments on commit b94a1dc

Please sign in to comment.