-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Travis Dart
committed
Jul 20, 2020
1 parent
11b214c
commit e00502d
Showing
7 changed files
with
79 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# .coveragerc to control coverage.py | ||
[run] | ||
branch = True | ||
parallel = True | ||
omit = | ||
fstest/wsgi.py | ||
manage.py | ||
|
||
[report] | ||
fail_under = 100 | ||
exclude_lines = | ||
if __name__ == "__main__": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
import django | ||
from django.conf import settings | ||
from django.test.utils import get_runner | ||
|
||
|
||
def run_tests(): | ||
os.environ['DJANGO_SETTINGS_MODULE'] = 'fstest.settings' | ||
django.setup() | ||
TestRunner = get_runner(settings) | ||
test_runner = TestRunner() | ||
# failures = test_runner.run_tests(["minimalapp.tests"]) | ||
failures = test_runner.run_tests(None) | ||
sys.exit(bool(failures)) | ||
|
||
|
||
if __name__ == "__main__": # pragma: no branch | ||
run_tests() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[tox] | ||
skipsdist = True | ||
envlist= | ||
begin | ||
py{27,38}-django111 | ||
py38-django{22,30} | ||
end | ||
|
||
[testenv:begin] | ||
deps = coverage | ||
commands = coverage erase | ||
|
||
[testenv] | ||
changedir = {toxinidir}/tests/ | ||
deps = | ||
coverage | ||
django30: django==3.0.* | ||
django22: django==2.2.* | ||
django111: django==1.11.* | ||
commands = | ||
coverage run \ | ||
--rcfile={toxinidir}/.coveragerc \ | ||
--source='{toxinidir}/tests/,{toxinidir}/formstorm/' \ | ||
runtests.py | ||
# coverage run --timid --branch --parallel-mode --source='{toxinidir}/tests/,{toxinidir}/formstorm/' runtests.py | ||
|
||
[testenv:end] | ||
deps = coverage | ||
commands = | ||
coverage combine | ||
coverage report -m |