-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.sh
executable file
·27 lines (18 loc) · 930 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## java unit tests
echo "Running Java unit tests"
type mvn >/dev/null 2>&1 || { echo >&2 "maven is required for testing but could not be found. Aborting."; exit 1; }
tests/run_unit_tests.sh
count=$?
## service tests
echo "Running Neo4j service tests"
# attempt to create a virtualenv for testing
type virtualenv >/dev/null 2>&1 || { echo >&2 "virtualenv is required for testing but could not be found. Aborting."; exit 1; }
virtualenv test_venv
. test_venv/bin/activate || { echo "could not activate virtualenv for testing. Aborting."; exit 1; }
# install test dependencies if necessary
type nosetests >/dev/null 2>&1 || { echo "installing test dependencies"; ./install_dependencies_for_tests.sh; }
python -c "import requests" >/dev/null 2>&1 || { echo "installing test dependencies"; ./install_dependencies_for_tests.sh; }
tests/run_service_tests.sh
count=$(($count+$?))
echo "A total of $count tests failed"
exit $count