Skip to content

Commit

Permalink
updated test command
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Sep 14, 2024
1 parent 04d11bb commit 0301165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
PYTORCH_MPS_HIGH_WATERMARK_RATIO: 0.0
with:
emoji: false
custom-arguments: --junit-xml pytest.xml
custom-arguments: --junit-xml pytest.xml --coverage-report xml

- name: Create Test Report
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ pyright --warnings --level warning --pythonversion 3.10 luxonis_train
We use [pytest](https://docs.pytest.org/en/stable/) for testing.
The tests are located in the `tests` directory. You can run the tests locally by running `pytest` in the root directory.

This command will run all tests and print a coverage report.
This command will run all tests generate HTML coverage report.

> \[!TIP\]
> This will also generate an HTML coverage report in the `htmlcov` directory.
> The coverage report will be saved to `htmlcov` directory.
> If you want to inspect the coverage in more detail, open `htmlcov/index.html` in a browser.
> \[!IMPORTANT\]
Expand Down

0 comments on commit 0301165

Please sign in to comment.