This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
2019-11-08 15:19:22 +01:00
|
|
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
|
|
# and then run "tox" from this directory.
|
|
|
|
|
|
|
|
[tox]
|
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/logtracker/{env:BRANCH_NAME:}
|
|
|
|
envlist = dj111
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = true
|
|
|
|
basepython = python3
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=tests.settings
|
|
|
|
coverage: COVERAGE=--junit-xml=test_results.xml --cov=logtracker --cov-report xml
|
|
|
|
deps =
|
|
|
|
dj111: django>=1.11,<1.12
|
|
|
|
coverage
|
2020-08-28 16:20:38 +02:00
|
|
|
django_webtest
|
2021-06-17 08:50:03 +02:00
|
|
|
psycopg2<2.9
|
2019-11-08 15:19:22 +01:00
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
|
|
|
tz
|
|
|
|
commands =
|
2019-11-12 15:49:55 +01:00
|
|
|
dj111: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=logtracker -s -x tests/ --disable-warnings}
|
2019-11-08 15:19:22 +01:00
|
|
|
[pytest]
|
|
|
|
filterwarnings =
|
|
|
|
once:.*
|