Skip to content
Snippets Groups Projects
Commit 9e0aea7c authored by David Trattnig's avatar David Trattnig
Browse files

New test script.

parent 2bf65016
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ http://localhost:8008/api/v1/openapi.json
To launch the integration tests, use tox:
```
sudo pip install tox
tox
./run.sh test
```
## Running with Docker
......
......@@ -10,6 +10,7 @@ docker="false"
#
# - api-dev
# - api
# - test
# - recreate-database
# - docker:recreate-database
......@@ -18,7 +19,7 @@ docker="false"
# - docker:api
#
if [[ $* =~ ^(api-dev|api)$ ]]; then
if [[ $* =~ ^(api-dev|api|test)$ ]]; then
mode=$1
fi
......@@ -55,6 +56,11 @@ if [[ $docker == "false" ]]; then
gunicorn -c config/gunicorn.conf.py src.server:app
fi
if [[ $mode == "test" ]]; then
echo "Testing API Server"
tox
fi
### CAUTION: This deletes everything in your database ###
if [[ $mode == "recreate-database" ]]; then
......
tox==3.15.2
flask_testing==0.8.0
coverage>=5.1
nose>=1.3.7
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment