#!/bin/bash

cd $(dirname $0)/src
RCFILE=~/teraflow/controller/coverage/.coveragerc

# Run unitary tests and analyze coverage of code at same time
coverage run --rcfile=$RCFILE -m pytest --log-level=DEBUG --verbose \
    common/database/tests/test_unitary.py \
    common/database/tests/test_engine_inmemory.py \
    context/tests/test_unitary.py \
    device/tests/test_unitary.py

## Run integration tests and analyze coverage of code at same time
#coverage run --rcfile=$RCFILE --append -m pytest --log-level=WARN --verbose \
#    common/database/tests/test_integration_redis.py \
#    device/tests/test_integration.py
