Add coverage to unit tests

This commit is contained in:
Paul Romano 2017-10-17 15:13:30 -05:00
parent ef7261cd71
commit 3d32f57c6f
2 changed files with 2 additions and 2 deletions

View file

@ -62,6 +62,6 @@ script:
./check_source.py;
else
./run_tests.py -C $OPENMC_CONFIG -j 2;
pytest unit_tests/;
pytest --cov=../openmc unit_tests/;
fi
- cd ..

View file

@ -66,7 +66,7 @@ kwargs = {
# Optional dependencies
'extras_require': {
'test': ['pytest'],
'test': ['pytest', 'pytest-cov'],
'vtk': ['vtk', 'silomesh'],
},
}