From 586fdbcbbd4a9b39238c44c9e2f2738280ddd3fb Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Wed, 4 Nov 2015 15:00:37 +0100 Subject: [PATCH] Add example tests directory structure --- doc/en/example/pythoncollection.rst | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/en/example/pythoncollection.rst b/doc/en/example/pythoncollection.rst index dc2ad3623..eafd4c951 100644 --- a/doc/en/example/pythoncollection.rst +++ b/doc/en/example/pythoncollection.rst @@ -6,7 +6,23 @@ Ignore paths during test collection You can easily ignore certain test directories and modules during collection by passing the ``--ignore=path`` option on the cli. ``pytest`` allows multiple -``--ignore`` options. +``--ignore`` options. Example:: + + tests/ + ├── example + │   ├── test_example_01.py + │   ├── test_example_02.py + │   └── test_example_03.py + ├── foobar + │   ├── test_foobar_01.py + │   ├── test_foobar_02.py + │   └── test_foobar_03.py + └── hello + └── world + ├── test_world_01.py + ├── test_world_02.py + └── test_world_03.py + Changing directory recursion -----------------------------------------------------