Skip to content

Commit 735df77

Browse files
committed
added init to test folder
1 parent 9856520 commit 735df77

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

tests/README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ pip install -r requirements.txt
1818

1919
# run tests
2020
py.test
21-
22-
# or to generate coverage
23-
pip install coverage
24-
coverage run tests/test_models.py
2521
```
2622

2723
To test models that require GPU make sure to run the above command on a GPU machine.
@@ -46,4 +42,17 @@ For each set up it also tests:
4642
4. simulated save from HPC signal.
4743
5. simulated load from HPC signal.
4844

45+
## Running Coverage
46+
47+
```bash
48+
cd pytorch-lightning
49+
50+
# generate coverage
51+
pip install coverage
52+
coverage run tests/test_models.py
53+
54+
# print coverage stats
55+
coverage report -m
56+
```
57+
4958

0 commit comments

Comments
 (0)