| [43fd35c] | 1 | [tox]
|
|---|
| [4a43d31] | 2 | envlist = clean,py3fast,py3sitepackages,py3slow,py3chrome
|
|---|
| [43fd35c] | 3 | #skipsdist = True
|
|---|
| 4 |
|
|---|
| 5 | [testenv]
|
|---|
| 6 | setenv =
|
|---|
| [91c5ab7] | 7 | CPLUS_INCLUDE_PATH=/usr/include/gdal
|
|---|
| 8 | C_INCLUDE_PATH=/usr/include/gdal
|
|---|
| [43fd35c] | 9 | deps = -rrequirements.txt
|
|---|
| [91c5ab7] | 10 | -rtest-requirements.txt
|
|---|
| 11 | pytest
|
|---|
| 12 | pytest-cov
|
|---|
| 13 | pytest-pep8
|
|---|
| 14 | coverage
|
|---|
| [43fd35c] | 15 | commands =
|
|---|
| [4a43d31] | 16 | pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8
|
|---|
| [43fd35c] | 17 |
|
|---|
| 18 | [testenv:clean]
|
|---|
| 19 | deps = coverage
|
|---|
| 20 | skip_install = true
|
|---|
| 21 | commands = coverage erase
|
|---|
| 22 |
|
|---|
| [91c5ab7] | 23 | [testenv:py3fast]
|
|---|
| 24 | commands =
|
|---|
| [4a43d31] | 25 | pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8 -m 'not slow and not sitepackages and not selenium'
|
|---|
| [91c5ab7] | 26 |
|
|---|
| [176de96] | 27 | [testenv:py3slow]
|
|---|
| 28 | commands =
|
|---|
| [4a43d31] | 29 | pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8 -m 'slow'
|
|---|
| [0f60a52] | 30 |
|
|---|
| 31 | [testenv:py3sitepackages]
|
|---|
| 32 | sitepackages=true
|
|---|
| 33 | commands =
|
|---|
| [4a43d31] | 34 | pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8 -m 'sitepackages'
|
|---|
| [176de96] | 35 |
|
|---|
| [4a43d31] | 36 | [testenv:py3chrome]
|
|---|
| 37 | commands =
|
|---|
| 38 | pytest --driver=Chrome --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --html=tests/reports/test-report.html --pep8 -m 'selenium'
|
|---|
| 39 |
|
|---|
| [43fd35c] | 40 | [pytest]
|
|---|
| 41 | xfail_strict=true
|
|---|
| [176de96] | 42 | markers =
|
|---|
| 43 | slow: marks tests as slow (deselect with '-m "not slow"')
|
|---|
| [0f60a52] | 44 | sitepackages: marks tests, which need site-packages enabled
|
|---|
| [4a43d31] | 45 | selenium: marks tests, which uses selenium
|
|---|
| [43fd35c] | 46 | norecursedirs=src/mapservice-webclient/*
|
|---|
| [91c5ab7] | 47 | build/*
|
|---|
| [43fd35c] | 48 | pep8ignore =
|
|---|
| [9f0f35e] | 49 | src/gnuboat/common/spatial/tile_generator.py E701
|
|---|
| 50 | src/gnuboat/common/datahandler/rrd_schema.py E701
|
|---|
| [2c86c99] | 51 | src/gnuboat/common/bin/gdal2tiles-gnuboat.py ALL
|
|---|
| [9f0f35e] | 52 | src/gnuboat/mapservice_impl/tasks/tile_config.py E701
|
|---|
| [43fd35c] | 53 | src/gnuboat/mapservice/controllers/*.py E501
|
|---|
| 54 | src/gnuboat/mapservice/models/*.py E501
|
|---|
| [c04676b] | 55 | src/gnuboat/mapservice/test/*.py E501 W293
|
|---|
| [91c5ab7] | 56 | src/gnuboat/mapservice_client/*.py E402 E501 W503
|
|---|
| [2c86c99] | 57 | src/gnuboat/deviceservice/controllers/*.py E501
|
|---|
| 58 | src/gnuboat/deviceservice/models/*.py E501
|
|---|
| [91c5ab7] | 59 | src/gnuboat/deviceservice/test/*.py E251 E501 W293
|
|---|