[tox] envlist = clean,py3fast,py3slow #skipsdist = True [testenv] setenv = CPLUS_INCLUDE_PATH=/usr/include/gdal C_INCLUDE_PATH=/usr/include/gdal deps = -rrequirements.txt -rtest-requirements.txt pytest pytest-cov pytest-pep8 coverage commands = pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --pep8 [testenv:clean] deps = coverage skip_install = true commands = coverage erase [testenv:py3fast] commands = pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html --pep8 -m 'not slow' -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)' [testenv:py3fastfailing] # tests, which are known to fail, but are autogenerated # this tests are excluded from py3fast and not in the standard env list commands = pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html -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)' [testenv:py3slow] commands = pytest --cov=src --cov-append --cov-report=term-missing --cov-report=html:tests/reports/coverage-html -m 'slow' [pytest] xfail_strict=true markers = slow: marks tests as slow (deselect with '-m "not slow"') norecursedirs=src/mapservice-webclient/* build/* pep8ignore = src/gnuboat/common/spatial/tilegenerator.py E701 src/gnuboat/common/device/rrdschema.py E701 src/gnuboat/common/bin/gdal2tiles-gnuboat.py ALL src/gnuboat/mapservice_impl/tasks/tileconfig.py E701 src/gnuboat/mapservice/controllers/*.py E501 src/gnuboat/mapservice/models/*.py E501 src/gnuboat/mapservice/test/*.py E501 W293 src/gnuboat/mapservice_client/*.py E402 E501 W503 src/gnuboat/deviceservice/controllers/*.py E501 src/gnuboat/deviceservice/models/*.py E501 src/gnuboat/deviceservice/test/*.py E251 E501 W293