Commit fcef1cfc authored by david's avatar david
Browse files

Run test cases with virtual environment. #78

parent 3e7594e5
......@@ -7,7 +7,8 @@ This page gives insights on extending Aura Engine internals or through the API.
- [Aura Engine Development Guide](#aura-engine-development-guide)
- [AURA Componentes](#aura-componentes)
- [Engine Components](#engine-components)
- [Running Engine for Development](#running-engine-for-development)
- [Running for Development](#running-for-development)
- [Testing](#testing)
- [API](#api)
- [Scheduler](#scheduler)
- [Docker](#docker)
......@@ -46,7 +47,7 @@ There's a convenience script to start all of the three main dependencies (Steeri
*...TBD...*
## Running Engine for Development
## Running for Development
Ensure you have following other projects up and running:
......@@ -70,6 +71,14 @@ Now start Liquidsoap which is part of Engine Core:
If your IDE of choice is *Visual Studio Code*, then there are launch settings provided in `.vscode/launch.json`.
## Testing
Test cases are located in `./tests`. The test command expects a virtual environment in `./python` which gets activated automatically as soon you run the tests with
```shell
~/code/aura/engine$ ./run.sh test
```
## API
You can find the AURA API definition here: https://gitlab.servus.at/autoradio/meta/blob/master/api-definition.md
......
......@@ -57,7 +57,9 @@ if [[ $docker == "false" ]]; then
### Runs Tests ###
if [[ $mode == "test" ]]; then
/usr/bin/env $PYTHON_EXEC -m unittest discover tests
source python/bin/activate
echo "Running Engine Tests in Python Environment ($(python3 -V))"
python -m unittest discover tests
fi
### CAUTION: This deletes everything in your database ###
......
Markdown is supported
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