Before the release we should try to increase test coverage to >99%
(this is good for us to check that things are working and great advertisement in a field where most code is untested and buggy)
you can find out about test coverage by pip installing
pytest and pytest-cov
The following command with the fermilib/src/fermilib folder will run the tests and show the line numbers which are not covered:
Note: such a coverage tool should only be used as a help to check if you forgot something. You should always first try to write tests to cover all the important cases because 100% test coverage doesn't mean that you have done that.
Before the release we should try to increase test coverage to >99% (this is good for us to check that things are working and great advertisement in a field where most code is untested and buggy)
you can find out about test coverage by pip installing
pytest
andpytest-cov
The following command with the
fermilib/src/fermilib
folder will run the tests and show the line numbers which are not covered:python2.7 -m pytest --cov --cov-report term-missing
Note: such a coverage tool should only be used as a help to check if you forgot something. You should always first try to write tests to cover all the important cases because 100% test coverage doesn't mean that you have done that.