pytest adoption: current status (beginning of May)
Marc Abramowitz
msabramo at gmail.com
Wed May 6 17:25:16 EDT 2015
Also, and the following doesn't require installing any plugins:
py.test -r fEsxXw
That looks pretty unintelligible but basically you're telling the -r
(report) option what to display more info about. Do `pytest --help` and
look at the documentation for -r and it shows you what all those letters
mean.
If you want this to be the default whenever running `py.test`, you can set
it in pytest.ini or set an environment variable. See
https://pytest.org/latest/customize.html#adding-default-options
One of the projects that I work on has a pytest.ini that looks like this:
[pytest]
norecursedirs = build docs/_build SQLAlchemy* .* stuff venv *.egg .tox
*.venv
addopts =
# --verbose
--tb short
# --capture no
# show extra test summary info as specified by chars (f)ailed,
(E)error, (s)skipped, (x)failed, (X)passed.
-rfEsxX
# --junitxml=junit.xml
# --cov=pymssql --cov-report=xml --cov-report=term-missing
markers =
slow: Mark a pymssql test as slow (usually taking more one second or
more).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20150506/ba2239a3/attachment.html>
More information about the kallithea-general
mailing list