Skip to content

Commit 796a31c

Browse files
authored
Add test cases for release
Modify tox.ini to separate release test from normal test
2 parents 0a7d8b8 + a0c11c7 commit 796a31c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ skipdist = true
77
[testenv]
88
install_command = pip install {opts} {packages}
99
basepython= python3.6
10+
setenv =
11+
PYTHONPATH=.
1012

1113
[flake8]
1214
max-line-length = 145
@@ -16,12 +18,14 @@ exclude = .tox/*
1618
filterwarnings = ignore::DeprecationWarning
1719

1820
[testenv:test_run]
21+
commands =
22+
fosslight_reuse -p src/ -r "test_result/reuse_result.xml"
23+
fosslight_reuse -p src/ -f "fosslight_reuse/wrapper_reuse_lint.py" -r "test_result2/reuse_result.xml"
24+
25+
[testenv:release]
1926
deps =
2027
-r{toxinidir}/requirements-dev.txt
2128

22-
setenv =
23-
PYTHONPATH=.
24-
2529
commands =
2630
fosslight_reuse -h
2731
fosslight_reuse -p src/ -r "test_result/reuse_result.xml"

0 commit comments

Comments
 (0)