You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,15 +26,12 @@ More detailed usage is described in the [tutorial][tutorial]
26
26
- install `pytest-rts`
27
27
3. Switch to directory with target project
28
28
4. Install all the dependencies needed for testing (should be installed into the same pytest-rts virtual environment)
29
-
5. Execute `pytest --rts` which will run the entire test suite and build a mapping database
29
+
5. Execute `pytest --cov=<path to code> --cov-context=test` which will run the entire test suite and build a mapping database with [pytest-cov](https://github.com/pytest-dev/pytest-cov)
30
+
6. Rename the coverage file produced by `pytest-cov` to your liking. Example: `mv .coverage pytest-rts-coverage`
30
31
31
-
#### Running tests related to the changes
32
+
#### Running new tests
32
33
33
-
1. execute `pytest --rts` after doing changes
34
-
35
-
#### Running evaluation code
36
-
37
-
1. execute `pytest_rts_eval` in target project directory
34
+
1. execute `pytest --rts --rts-coverage-db=<your coverage file>` after adding new tests
0 commit comments