forked from GrammaTech/gtirb-rewriting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (40 loc) · 1.26 KB
/
tox.ini
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
######################################################
# tox environment configuration
######################################################
[tox]
minversion=3.14.0
envlist=test,report
requires=setuptools
[testenv]
basepython=python3
whitelist_externals=/bin/bash
deps = -r{toxinidir}/requirements-dev.txt
extras=test
commands=
test: python -m pytest --cov=gtirb_rewriting --cov-report= tests/ {posargs}
# This environment only reports code coverage. The "test" environment actually
# runs the code coverage.
[testenv:report]
skip_install = true
deps = coverage
commands =
coverage html
coverage report --fail-under=50
# This environment is only for development.
# See here for details: https://tox.readthedocs.io/en/latest/example/devenv.html
[testenv:venv]
extras=test
envdir=venv
usedevelop=True
commands=
deps=-r{toxinidir}/requirements-dev.txt
######################################################
# pytest configuration
######################################################
[pytest]
# --strict-markers: raise an error if an unregistered marker is used
# -v: verbose output
# -ra: summarize all test results except for those that pass (with output)
addopts=--strict-markers -v -ra
markers=
commit: relatively quick tests that should be executed for each commit