summaryrefslogtreecommitdiff
path: root/doc/en/example
diff options
context:
space:
mode:
authorHugo Martins <caramelo.martins@gmail.com>2020-11-08 14:45:10 +0000
committerGitHub <noreply@github.com>2020-11-08 11:45:10 -0300
commit5b2e5e8a40663e29eb371c6dd8f778dcd8b00861 (patch)
treec4847d51a4ee59cb54f479b0c0ee6aa0cd6e305d /doc/en/example
parent29f2f4e8540efbdce33fcceb90b19afac64fc9a5 (diff)
downloadpytest-5b2e5e8a40663e29eb371c6dd8f778dcd8b00861.tar.gz
Improve summary stats when using '--collect-only' (#7875)
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Diffstat (limited to 'doc/en/example')
-rw-r--r--doc/en/example/nonpython.rst2
-rw-r--r--doc/en/example/parametrize.rst6
-rw-r--r--doc/en/example/pythoncollection.rst8
3 files changed, 8 insertions, 8 deletions
diff --git a/doc/en/example/nonpython.rst b/doc/en/example/nonpython.rst
index 464a6c6ce..558c56772 100644
--- a/doc/en/example/nonpython.rst
+++ b/doc/en/example/nonpython.rst
@@ -102,4 +102,4 @@ interesting to just look at the collection tree:
<YamlItem hello>
<YamlItem ok>
- ========================== no tests ran in 0.12s ===========================
+ ========================== 2 tests found in 0.12s ===========================
diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst
index f1c98d449..d5a11b451 100644
--- a/doc/en/example/parametrize.rst
+++ b/doc/en/example/parametrize.rst
@@ -175,7 +175,7 @@ objects, they are still using the default pytest representation:
<Function test_timedistance_v3[forward]>
<Function test_timedistance_v3[backward]>
- ========================== no tests ran in 0.12s ===========================
+ ========================== 8 tests found in 0.12s ===========================
In ``test_timedistance_v3``, we used ``pytest.param`` to specify the test IDs
together with the actual data, instead of listing them separately.
@@ -252,7 +252,7 @@ If you just collect tests you'll also nicely see 'advanced' and 'basic' as varia
<Function test_demo1[advanced]>
<Function test_demo2[advanced]>
- ========================== no tests ran in 0.12s ===========================
+ ========================== 4 tests found in 0.12s ===========================
Note that we told ``metafunc.parametrize()`` that your scenario values
should be considered class-scoped. With pytest-2.3 this leads to a
@@ -328,7 +328,7 @@ Let's first see how it looks like at collection time:
<Function test_db_initialized[d1]>
<Function test_db_initialized[d2]>
- ========================== no tests ran in 0.12s ===========================
+ ========================== 2/2 tests found in 0.12s ===========================
And then when we run the test:
diff --git a/doc/en/example/pythoncollection.rst b/doc/en/example/pythoncollection.rst
index c2f034839..f7917b790 100644
--- a/doc/en/example/pythoncollection.rst
+++ b/doc/en/example/pythoncollection.rst
@@ -157,7 +157,7 @@ The test collection would look like this:
<Function simple_check>
<Function complex_check>
- ========================== no tests ran in 0.12s ===========================
+ ========================== 2 tests found in 0.12s ===========================
You can check for multiple glob patterns by adding a space between the patterns:
@@ -220,7 +220,7 @@ You can always peek at the collection tree without running tests like this:
<Function test_method>
<Function test_anothermethod>
- ========================== no tests ran in 0.12s ===========================
+ ========================== 3 tests found in 0.12s ===========================
.. _customizing-test-collection:
@@ -282,7 +282,7 @@ leave out the ``setup.py`` file:
<Module 'pkg/module_py2.py'>
<Function 'test_only_on_python2'>
- ====== no tests ran in 0.04 seconds ======
+ ====== 1 tests found in 0.04 seconds ======
If you run with a Python 3 interpreter both the one test and the ``setup.py``
file will be left out:
@@ -296,7 +296,7 @@ file will be left out:
rootdir: $REGENDOC_TMPDIR, configfile: pytest.ini
collected 0 items
- ========================== no tests ran in 0.12s ===========================
+ ========================== no tests found in 0.12s ===========================
It's also possible to ignore files based on Unix shell-style wildcards by adding
patterns to :globalvar:`collect_ignore_glob`.