barbican/functionaltests/pretty_tox.sh
Steve Heyman fdf79c9636 Add code coverage results for functional tests
Add python code coverage reporting to the functional
test runs.

Change-Id: Icccfd3029f369bf52fc148f3838357acabfa1d1c
2016-04-05 15:48:30 -05:00

11 lines
224 B
Bash

#!/usr/bin/env bash
set -o pipefail
TESTRARGS=$1
python setup.py testr --coverage --testr-args="--subunit $TESTRARGS" | subunit-trace --no-failure-debug -f
retval=$?
echo -e "\nSlowest Tests:\n"
testr slowest
exit $retval