Skip to content

Commit

Permalink
Tests README: Add instructions to install testing-related packages (#…
Browse files Browse the repository at this point in the history
…1180)

* Add instructions to install testing-related packages

* Update testing/README.md

Co-authored-by: Nick <nick@kousu.ca>

* Update README.md

Co-authored-by: Nick <nick@kousu.ca>
  • Loading branch information
mathieuboudreau and kousu committed Aug 1, 2022
1 parent c0ca3fc commit f9653c0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@ Checkout `ivadomed/.github/workflows/run_tests.yml` to see how tests are run on

## Running Locally

1. Download the required dataset(s) using the `ivadomed` command line tools:
1. Install dependencies
```
cd ivadomed # root of the repo
ivadomed_download_data -d data_testing -o data_testing # for unit tests
ivadomed_download_data -d data_functional_testing -o data_functional_testing # for functional tests
pip install -e .[dev]
```

2. To run all tests:
```
pytest
pytest -v
```

or, to run specific tests:
```
pytest testing/functional_tests/
pytest testing/unit_tests/
pytest testing/functional_tests/test_example.py
pytest -v testing/functional_tests/
pytest -v testing/unit_tests/
pytest -v testing/functional_tests/test_example.py
```

## Wiki
Expand Down

0 comments on commit f9653c0

Please sign in to comment.