File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,17 @@ For development and contributing to llama-recipes please install from source wit
43
43
pip install -U pip setuptools
44
44
pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 -e .[tests,auditnlg,vllm]
45
45
```
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:
47
47
```
48
- python -m pytest tests/
48
+ python -m pytest src/ tests/
49
49
```
50
50
To run all tests of a single file you can give the filename directly:
51
51
```
52
- python -m pytest tests/test_finetuning.py
52
+ python -m pytest src/ tests/test_finetuning.py
53
53
```
54
54
To run a specific test you can filter for its name with
55
55
```
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
57
57
```
58
58
To add a new test simply create a new test file under the tests folder (filename has to start with ` test_ ` ).
59
59
Group tests spanning the same feature in the same file and create a subfolder if the tests are very extensive.
You can’t perform that action at this time.
0 commit comments