-
Notifications
You must be signed in to change notification settings - Fork 2
/
run-tests.sh
executable file
·21 lines (19 loc) · 1.06 KB
/
run-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
######################################################################
# Run nose tests with coverage #
######################################################################
# #
# Usage: #
# $ ./run-tests.sh [--no-coverage] #
# --no-coverage: run tests without generating #
# a test coverage report. #
# #
# Requirements: #
# $ pip install -r requirements/common.txt #
# #
######################################################################
if [ "$1" == "--no-coverage" ] ; then
nosetests
else
nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=tmp/
fi