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
<td><h1style="padding: 0; margin: 0;">Coverage-based regression test selection (RTS) plugin for pytest</h1></td>
6
+
</tr></table>
4
7
5
8
-[Usage](#usage)
6
9
-[Troubleshooting](#troubleshooting)
@@ -24,6 +27,8 @@ relative_files = True
24
27
3. Execute `pytest --cov=[path to your package] --cov-context=test --cov-config=.coveragerc` which will run the entire test suite and build a mapping database in `.coverage` file
25
28
4. Rename the coverage file `.coverage` produced by `pytest-cov` to your liking. Example: `mv .coverage pytest-rts-coverage`
26
29
30
+
Note that `--cov-config=.coveragerc` is optional parameter here. For more info see [official docs](https://pytest-cov.readthedocs.io/en/latest/config.html#caveats).
31
+
27
32
### Local usage
28
33
29
34
1. Install `pytest-rts` with `pip install pytest-rts`
@@ -41,6 +46,36 @@ As a result only tests related to changes in working directory and branch will b
41
46
* In pull requests:
42
47
* make sure you have coverage database from the main branch located next to the code
43
48
* run `pytest --rts --rts-coverage-db=[path to database]`
49
+
50
+
One of the ways to organize it in Makefile would be:
0 commit comments