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

Run test cases with virtual environment. #78

parent 3e7594e5
No related branches found
No related tags found
No related merge requests found
......@@ -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 ###
......
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