From 735df77862194ca504af5cbe4f259620c165d006 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Wed, 24 Jul 2019 21:35:38 -0400 Subject: [PATCH] added init to test folder --- tests/README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/README.md b/tests/README.md index e4bda25494..20f783bf7e 100644 --- a/tests/README.md +++ b/tests/README.md @@ -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 +``` +