source: tox.ini@ 817f446

debian/bullseye
Last change on this file since 817f446 was 817f446, checked in by Joachim Langenbach <joachim.langenbach@…>, 7 years ago

Running sitepackages tests before the slow ones

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[43fd35c]1[tox]
[817f446]2envlist = clean,py3fast,py3sitepackages,py3slow
[43fd35c]3#skipsdist = True
4
5[testenv]
6setenv =
[91c5ab7]7 CPLUS_INCLUDE_PATH=/usr/include/gdal
8 C_INCLUDE_PATH=/usr/include/gdal
[43fd35c]9deps = -rrequirements.txt
[91c5ab7]10 -rtest-requirements.txt
11 pytest
12 pytest-cov
13 pytest-pep8
14 coverage
[43fd35c]15commands =
[91c5ab7]16 pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --pep8
[43fd35c]17
18[testenv:clean]
19deps = coverage
20skip_install = true
21commands = coverage erase
22
[91c5ab7]23[testenv:py3fast]
24commands =
[0f60a52]25 pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --pep8 -m 'not slow and not sitepackages' -k 'not test_tiles_tile_get and not test_users_register and not test_users_activate and not test_maps_tile_get and not test_shutdown and not test_log_create and not (test_device_logs_controller and test_logs_get)'
[91c5ab7]26
27[testenv:py3fastfailing]
28# tests, which are known to fail, but are autogenerated
29# this tests are excluded from py3fast and not in the standard env list
30commands =
[0f60a52]31 pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --pep8 -k 'test_tiles_tile_get or test_users_register or test_users_activate or test_maps_tile_get or test_shutdown or test_log_create or (not test_logs_controller and test_logs_get)'
[91c5ab7]32
[176de96]33[testenv:py3slow]
34commands =
[0f60a52]35 pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --pep8 -m 'slow and not sitepackages'
36
37[testenv:py3sitepackages]
38sitepackages=true
39commands =
40 pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --pep8 -m 'sitepackages'
[176de96]41
[43fd35c]42[pytest]
43xfail_strict=true
[176de96]44markers =
45 slow: marks tests as slow (deselect with '-m "not slow"')
[0f60a52]46 sitepackages: marks tests, which need site-packages enabled
[43fd35c]47norecursedirs=src/mapservice-webclient/*
[91c5ab7]48 build/*
[43fd35c]49pep8ignore =
[c04676b]50 src/gnuboat/common/spatial/tilegenerator.py E701
[0f60a52]51 src/gnuboat/common/datahandler/rrdschema.py E701
[2c86c99]52 src/gnuboat/common/bin/gdal2tiles-gnuboat.py ALL
53 src/gnuboat/mapservice_impl/tasks/tileconfig.py E701
[43fd35c]54 src/gnuboat/mapservice/controllers/*.py E501
55 src/gnuboat/mapservice/models/*.py E501
[c04676b]56 src/gnuboat/mapservice/test/*.py E501 W293
[91c5ab7]57 src/gnuboat/mapservice_client/*.py E402 E501 W503
[2c86c99]58 src/gnuboat/deviceservice/controllers/*.py E501
59 src/gnuboat/deviceservice/models/*.py E501
[91c5ab7]60 src/gnuboat/deviceservice/test/*.py E251 E501 W293
Note: See TracBrowser for help on using the repository browser.