Skip to content

Commit

Permalink
PYTHON-3844 Enable Pytest XML Reporting in Tox (#1330)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Jul 27, 2023
1 parent eed4a55 commit fbecc75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ functions:
set -o xtrace
# This is required for pypy3.7 UTF encoding
export LC_ALL=en_US.UTF-8
${PYTHON_BINARY} -m tox -e test-atlas
${PYTHON_BINARY} -m tox -m test-atlas
"add aws auth variables to file":
- command: shell.exec
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
testpaths =
test
norecursedirs = test/*
addopts = -ra --junitxml=xunit-results/TEST-results.xml
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ deps =
pytest>=7
commands =
python --version
pytest -v -rs {posargs}
pytest -v {posargs}

[testenv:test-encryption]
description = run base unit tests with encryption enabled
deps = {[testenv:test]deps}
extras = encryption
commands =
python --version
pytest {posargs}
pytest -v {posargs}

[testenv:lint]
description = run pre-commit
Expand Down Expand Up @@ -145,7 +145,7 @@ deps =
{[testenv:test]deps}
passenv = *
commands =
python -m pytest -v ./test/atlas/test_connection.py
python -m pytest -v {posargs} ./test/atlas/test_connection.py

[testenv:test-mockupdb]
description = run mockupdb tests
Expand All @@ -154,4 +154,4 @@ deps =
https://github.com/ajdavis/mongo-mockup-db/archive/master.zip
passenv = *
commands =
python -m pytest -v ./test/mockupdb
python -m pytest -v {posargs} ./test/mockupdb

0 comments on commit fbecc75

Please sign in to comment.