Before running the tests, make sure the following prerequisites are in place:
- Python 3.7+ & Pip are installed
- Robot Framework & dependencies are installed (
pip install -r requirements.txtinside thetestsfolder) - An EHRbase instance is running on port
8080
This command will run all tests from tests/robot folder.
DB and server have to be started prior to running the tests.
cd tests
./run_local_tests.shExecute a single test suite and store results in ./results:
docker run -ti -v ./results:/integration-tests/results ehrbase/integration-tests:build runRobotTest \
--serverBase http://ehrbase:8080 \
--name SANITY \
--path SANITY_TESTS \
--tags Sanity Collect results of multiple tests into a single report
docker run -ti -v ./results:/integration-tests/results -v ./report:/integration-tests/report ehrbase/integration-tests:build collectRebotResults