#!/bin/bash -e
export PYTHONPATH=$PYTHONPATH:`pwd`/../../src

echo "Running master api tests"
pytest master_tests/master_api_tests.py --log-level=DEBUG --durations=2 --junit-xml ../gw-unit-reports-3/MasterApiTest.xml


echo "Running master command tests"
pytest master_tests/master_command_tests.py --log-level=DEBUG --durations=2 --junit-xml ../gw-unit-reports-3/MasterCommandTest.xml


#!/bin/bash -e
export PYTHONPATH=$PYTHONPATH:`pwd`/../../src

echo "Running master api tests"
python3 master_tests/master_api_tests.py

echo "Running master command tests"
python3 master_tests/master_command_tests.py


--- 
+++ 
@@ -2,8 +2,9 @@
 export PYTHONPATH=$PYTHONPATH:`pwd`/../../src
 
 echo "Running master api tests"
-python3 master_tests/master_api_tests.py
+pytest master_tests/master_api_tests.py --log-level=DEBUG --durations=2 --junit-xml ../gw-unit-reports-3/MasterApiTest.xml
+
 
 echo "Running master command tests"
-python3 master_tests/master_command_tests.py
+pytest master_tests/master_command_tests.py --log-level=DEBUG --durations=2 --junit-xml ../gw-unit-reports-3/MasterCommandTest.xml
 
Use pytest instead of __main__
