Skip to content

Commit

Permalink
docs: update functionality description
Browse files Browse the repository at this point in the history
  • Loading branch information
guotin authored Mar 25, 2021
1 parent 52288be commit d65aa12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ relative_files = True

As a result only tests related to changes in working directory will be executed.

#### Tests from committed changes
#### Tests from working directory + committed changes

1. Install `pytest-rts` with `pip install pytest-rts`
2. Create a branch `git checkout -b feat/new-feature`
3. Make changes in your code and commit them
4. Run the tool with `pytest --rts --rts-coverage-db=[path to database] --rts-from-commit=[database initialization commithash]`

As a result only tests related to committed changes will be executed. The tool compares the given commithash to the current Git HEAD.
The current git working directory copy will be compared to the given commithash. Tests for changes in commits and in the working directory will be executed.

### Usage in CI

Expand Down

0 comments on commit d65aa12

Please sign in to comment.