1 |
|
2 | set -e
|
3 |
|
4 | # Set up submodule if not already present
|
5 | git submodule init
|
6 | git submodule update
|
7 |
|
8 | # Run all bats tests
|
9 |
|
10 | if [ $1 ];
|
11 | then
|
12 | target=$1
|
13 | else
|
14 | target='tests/system/*'
|
15 | fi
|
16 |
|
17 | echo "Running unit tests"
|
18 | ./node_modules/tape/bin/tape tests/unit/*
|
19 |
|
20 | echo "Running system tests"
|
21 | ./tests/vendor/bats/bin/bats $target
|