Commit a1d62bef authored by David Trattnig's avatar David Trattnig
Browse files

Ability to run tests from start script. #63

parent 3e950274
......@@ -11,6 +11,7 @@ docker="false"
# - engine
# - core
# - lqs
# - test
# - recreate-database
# - docker:engine
......@@ -18,7 +19,7 @@ docker="false"
# - docker:push
#
if [[ $* =~ ^(init|env|engine|core|lqs)$ ]]; then
if [[ $* =~ ^(init|env|engine|core|lqs|test|recreate-database)$ ]]; then
mode=$1
fi
......@@ -68,6 +69,12 @@ if [[ $docker == "false" ]]; then
eval "$lqs"
fi
### Runs Tests ###
if [[ $mode == "test" ]]; then
/usr/bin/env $PYTHON_EXEC -m unittest discover tests
fi
### CAUTION: This deletes everything in your database ###
if [[ $mode == "recreate-database" ]]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment