-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.cfg
50 lines (45 loc) · 1.99 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[tox:tox]
envlist =
clean
# Create unit and integration environments for each python version
py{36,37}-{unit,integration}
[testenv]
description =
py{36,37}-unit: Run unit tests
py{36,37}-integration: Run integration tests
deps =
pytest-xdist==1.31.0
pytest-cov==2.8.1
--editable=file:///{toxinidir}/src_matlab/checkCollision/for_redistribution_files_only/
-rrequirements.txt
commands =
# Command for unit tests
# -n auto Run on as many cores in parallel as possible.
# --dist=loadfile: Group tests by file and send them to a common process.
# This ensures that the TCP server adresses are not bound multiple times at once.
# --durations=10 Shows the 10 slowest tests.
# --cov=src test/ Collect the coverage for files in the src/ directory
# --cov-report=xml Output format of the coverage report
# --junitxml=~ Location of the JUnit-Reports
py{36,37}-unit: pytest -n auto --dist=loadfile --durations=10 --cov=src test/ --cov-append --cov-report=xml --junitxml=~/test-results/pytest/junit-gcode-{envname}.xml
# Command for integration tests
# -n auto Run on as many cores in parallel as possible.
# --dist=loadfile: Group tests by file and send them to a common process.
# This ensures that the TCP server adresses are not bound multiple times at once.
# --durations=10 Shows the 10 slowest tests.
# --no-cov Integration tests should not count towards coverage
py{36,37}-integration: pytest -n auto --dist=loadfile --durations=10 --no-cov test_integration/
skip_missing_interpreters = true
passenv = *
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[tool:pytest]
junit_suite_name = GCode Pytest
junit_family = xunit2
junitxml = test.xml
# tox (https://tox.readthedocs.io/) 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.