added init to test folder

This commit is contained in:
William Falcon
2019-07-24 21:35:38 -04:00
parent 9856520c0c
commit 735df77862
+13 -4
View File
@@ -18,10 +18,6 @@ pip install -r requirements.txt
# run tests
py.test
# or to generate coverage
pip install coverage
coverage run tests/test_models.py
```
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:
4. simulated save from HPC signal.
5. simulated load from HPC signal.
## Running Coverage
```bash
cd pytorch-lightning
# generate coverage
pip install coverage
coverage run tests/test_models.py
# print coverage stats
coverage report -m
```