Skip to content

Commit

Permalink
addopts for pytest-html have to go in test.sh because of packit...
Browse files Browse the repository at this point in the history
...(rpm specfile runs unit tests)

Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
  • Loading branch information
ben-alkov committed Dec 4, 2020
1 parent 866cc6e commit af55e5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pytest]
addopts = -ra --color=auto --html=__pytest_reports/dfp-unit-tests.html --self-contained-html
# addopts for html have to go in test.sh because of packit (rpm specfile runs unit tests)
render_collapsed = True
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function setup_dfp() {
case ${ACTION} in
"test")
setup_dfp
TEST_CMD="coverage run --source=osbs -m pytest tests"
TEST_CMD="coverage run --source=osbs -m pytest tests -ra --color=auto --html=__pytest_reports/dfp-unit-tests.html --self-contained-html"
;;
"pylint")
setup_dfp
Expand Down

0 comments on commit af55e5b

Please sign in to comment.