Skip to content

Commit

Permalink
Scafold basic pytest settings in config
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Apr 17, 2020
1 parent 69340ad commit f73e0a5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,38 @@
[pytest]
addopts =
# `pytest-xdist`:
#--numprocesses=auto

# `pytest-mon`:
# useful for live testing with `pytest-watch` during development:
#--testmon

# show 10 slowest invocations:
--durations=10

# a bit of verbosity doesn't hurt:
-v

# report all the things == -rxXs:
-ra

# show values of the local vars in errors:
--showlocals

# autocollect and invoke the doctests from all modules:
--doctest-modules

# dump the test results in junit format:
--junitxml=junit-test-results.xml

# `pytest-cov`:
#--cov=cheroot
#--cov-report term-missing:skip-covered
#--cov-report xml
# --cov-report xml:.test-results/pytest/cov.xml # alternatively move it here
doctest_optionflags = ALLOW_UNICODE ELLIPSIS
#filterwarnings =
# error
junit_duration_report = call
junit_family = xunit2
junit_suite_name = magicbus_test_suite
Expand Down

0 comments on commit f73e0a5

Please sign in to comment.