Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit 47edc51

Browse files
committed
Add a convenience script to run the tests
It also accepts extra arguments, e.g.: ./run-tests -k 'test_index_view_without_approved_events' Running the tests with a custom argument will turn off coverage reporting.
1 parent 267158f commit 47edc51

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

run-tests

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
extra_args="$@"
4+
5+
if [ -z "$extra_args" ]; then
6+
coverage_options="--cov web --cov api --cov-report term-missing"
7+
else
8+
coverage_options=""
9+
fi
10+
11+
DJANGO_SETTINGS_MODULE=codeweekeu.settings_testing TEST_MODE=true python ./manage.py test api/ web/ $coverage_options -v "$@"

0 commit comments

Comments
 (0)