1
0
mirror of https://github.com/gryf/coach.git synced 2026-01-28 19:15:46 +01:00

tests: added new setup configuration + test args (#211)

- added utils for future tests and conftest
- added test args
This commit is contained in:
anabwan
2019-02-13 07:43:59 -05:00
committed by GitHub
parent 9d0fed84a3
commit 7253f511ed
10 changed files with 815 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ several parts, each testing the framework in different areas and strictness.
The golden tests can be run using the following command:
```
python3 rl_coach/tests/test_golden.py
python3 -m pytest rl_coach/tests -m golden_test
```
* **Trace tests** -
@@ -59,3 +59,19 @@ several parts, each testing the framework in different areas and strictness.
```
python3 rl_coach/tests/trace_tests.py -prl
```
* **Optional PyTest Flags** -
Using -k expr to select tests based on their name;
The -k command line option to specify an expression which implements a substring match on the test names
instead of the exact match on markers that -m provides. This makes it easy to select tests based on their names:
```
python3 -m pytest rl_coach/tests -k Doom
```
Using -v (--verbose) expr to show tests progress during running the tests, -v can be added with -m or with -k, to use -v see
the following commands:
```
python3 -m pytest rl_coach/tests -v -m golden_test
OR
python3 -m pytest rl_coach/tests -v -k Doom
```