Skip to content

Instantly share code, notes, and snippets.

@pelme
Last active December 16, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pelme/5474397 to your computer and use it in GitHub Desktop.
Save pelme/5474397 to your computer and use it in GitHub Desktop.
The quiet output does not show test execution times:
$ py.test -m 'not django_db' -q
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
================= 421 tests deselected by "-m 'not django_db'" ==================
The standard output is too verbose in this case, but shows the execution time:
$ py.test -m 'not django_db'
====================== test session starts =======================
platform darwin -- Python 2.7.2 -- pytest-2.3.4
plugins: cache, contextfixture, cov, django, pep8, xdist
collected 1643 items
unit_tests/billing/admin.py ..
<<< 100 lines of output removed >>>
unit_tests/utils/logging_helpers/processors.py .........
========== 421 tests deselected by "-m 'not django_db'" ==========
========== 1222 passed, 421 deselected in 24.90 seconds ==========
I would like to see something like:
$ py.test -m 'not django_db'
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
========== 421 tests deselected by "-m 'not django_db'" ==========
========== 1222 passed, 421 deselected in 24.90 seconds ==========
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment