add discovery segment

This commit is contained in:
Daniel 2023-12-11 02:24:39 +01:00
parent cd00de6d01
commit 050d8cde38

View file

@ -96,6 +96,21 @@ def condition_function(args: ConditionArgs) -> bool:
... ...
``` ```
## Discovery of `Runners` and `Tests`
- Runners will be discovered, if they are defined in a moduled of name `runner_*.py` including a class of name `Runner*`.
- Tests will be discovered by filename as long as they are placed in the parent dir of `runner_*.py` or in any subdirectory.
```
DIR parent_dir
├── FILE runner_*.py
├── FILE test1.py
└── DIR subdir
├── DIR subsubdir
│ └── test2.py
└── test3.py
```
# Create custom Tests # Create custom Tests