Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Consolidate and update pytest options in pyproject.toml (#121)
* Remove .coveragerc and consolidate pytest options to pyproject.toml. * Apply 'configuring pytest' recommendations for pytest from Scikit-HEP (c.f. https://scikit-hep.org/developer/pytest#configuring-pytest ). - '-ra' includes a report after pytest runs with a summary on all tests except those that passed. From 'pytest --help': > -r chars: show extra test summary info as specified by chars: (f)ailed, > (E)rror, (s)kipped, (x)failed, (X)passed, (p)assed, (P)assed with output, > (a)ll except passed (p/P), or (A)ll. (w)arnings are enabled by default > (see --disable-warnings), 'N' can be used to reset the list. (default: 'fE'). - '-Wd' enables all warnings. > It adds 'd' to sys.warnoptions, which in turn adds a new first entry to > _warnings.filters which matches all warnings and enables the "default" > behavior, which is to show it once per execution of the Python interpreter. c.f. https://mail.python.org/pipermail/python-dev/2010-April/099116.html - '--showlocal' prints locals in tracebacks. - '--strict-markers' will complain if you use an unspecified fixture. - '--strict-config' will raise an error if there is a mistake in the pytest config. - 'log_cli_level = "info"' reports INFO and above log messages on a failure. * Remove '-r sx' from pytest calls in CI jobs as pyproject.toml now applies '-ra'. * Remove .coverage file added (accidentally?) in 134b6b4
- Loading branch information