sos-notebook
sos-notebook copied to clipboard
Improve test coverage of source code
https://coveralls.io/github/vatlab/sos-notebook
The coverage rate of sos notebook source code is not great. Mostly because the source code are triggered behind the sos kernel. Perhaps there is some way we can adjust the coverall python package to report the hidden coverage.
Interested in helping with it! But where should I start?
- Have a look at the travis test file and understand how the test works.
- Install
coverage codacy-coverage pytest pytest-cov python-coveralls(not sure if they are all needed) - Run the test and see if you can generate coverage file locally.
- Go to https://coveralls.io/github/vatlab/sos-notebook, find the lowest covered files and check if they are covered by our test suite.
- If the code should have been covered, check why it is not included in coverage report.
- If the code is not covered, write test to test it.
Will do! Is the approach same as this ticket?
Yes