Skip to content

Commit 0f16f6e

Browse files
Update contribution.md (meta-llama#528)
2 parents a695fd7 + cab7e76 commit 0f16f6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ For development and contributing to llama-recipes please install from source wit
4343
pip install -U pip setuptools
4444
pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 -e .[tests,auditnlg,vllm]
4545
```
46-
The unit tests can be found in the [tests](./tests/) folder and you can run them from the main directory using:
46+
The unit tests can be found in the [src/tests](./src/tests/) folder and you can run them from the main directory using:
4747
```
48-
python -m pytest tests/
48+
python -m pytest src/tests/
4949
```
5050
To run all tests of a single file you can give the filename directly:
5151
```
52-
python -m pytest tests/test_finetuning.py
52+
python -m pytest src/tests/test_finetuning.py
5353
```
5454
To run a specific test you can filter for its name with
5555
```
56-
python -m pytest tests/test_finetuning.py -k test_finetuning_peft
56+
python -m pytest src/tests/test_finetuning.py -k test_finetuning_peft
5757
```
5858
To add a new test simply create a new test file under the tests folder (filename has to start with `test_`).
5959
Group tests spanning the same feature in the same file and create a subfolder if the tests are very extensive.

0 commit comments

Comments
 (0)