forked from ni/nimi-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox-system_tests.ini
More file actions
62 lines (53 loc) · 2.56 KB
/
tox-system_tests.ini
File metadata and controls
62 lines (53 loc) · 2.56 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
# 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 -c tox-system_tests.ini" from the driver directory. (generated/nidmm)
[tox]
envlist = py{310,311,312,313}-nidmm-system_tests, py313-nidmm-coverage
skip_missing_interpreters=True
ignore_basepython_conflict=True
# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo
toxworkdir = ../../../.tox
[testenv]
description =
nidmm-system_tests: Run nidmm system tests (requires NI-DMM runtime to be installed)
nidmm-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions
changedir =
nidmm-system_tests: .
nidmm-coverage: .
commands =
# --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now
nidmm-system_tests: python -m pip install --disable-pip-version-check --upgrade pip
nidmm-system_tests: python -c "import nidmm; nidmm.print_diagnostic_information()"
nidmm-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidmm --parallel-mode -m pytest ../../src/nidmm/examples --junitxml=../junit/junit-nidmm-{envname}-examples-{env:BITNESS:64}.xml {posargs}
nidmm-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidmm --parallel-mode -m pytest ../../src/nidmm/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nidmm-{envname}-{env:BITNESS:64}.xml --durations=5 {posargs}
nidmm-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./
# Create the report to upload
nidmm-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc
# Display the coverage results
nidmm-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc
deps =
nidmm-system_tests: pytest
nidmm-system_tests: coverage
nidmm-system_tests: numpy
nidmm-system_tests: hightime
nidmm-system_tests: fasteners
nidmm-system_tests: pytest-json
nidmm-system_tests: .[grpc]
nidmm-coverage: coverage
depends =
nidmm-coverage: py{310,311,312,313}-nidmm-system_tests
passenv =
GIT_BRANCH
GIT_COMMIT
BUILD_URL
BRANCH_NAME
JENKINS_URL
BUILD_NUMBER
[pytest]
addopts = --verbose
filterwarnings =
error::pytest.PytestUnhandledThreadExceptionWarning
norecursedirs = .* build dist CVS _darcs {arch} *.egg venv
junit_suite_name = nimi-python
junit_family = xunit1