| 1 | [pytest] |
| 2 | # discover files that don't follow test_ naming. Useful to keep tests along with the source code |
| 3 | python_files = *.py |
| 4 | |
| 5 | # this setting only impacts package/module naming under pytest, not the discovery |
| 6 | consider_namespace_packages = true |
| 7 | |
| 8 | addopts = |
| 9 | # prevent pytest cache from being created... it craps into project dir and I never use it anyway |
| 10 | -p no:cacheprovider |
| 11 | |
| 12 | # -rap to print tests summary even when they are successful |
| 13 | -rap |
| 14 | --verbose |
| 15 | |
| 16 | # otherwise it won't discover doctests |
| 17 | --doctest-modules |
| 18 | |
| 19 | # show all test durations (unless they are too short) |
| 20 | --durations=0 |