codecov: Document line capture issue in code.
This commit is contained in:
parent
a5708e4dde
commit
095cea7ab9
2 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,8 @@ def main():
|
|||
cov.load()
|
||||
cov.start()
|
||||
|
||||
# Codecov seems to work only when using loader.discover. It failed to capture line executions
|
||||
# for functions like loader.loadTestFromModule or loader.loadTestFromNames.
|
||||
test_suites = unittest.defaultTestLoader.discover('zulip_botserver')
|
||||
suite = unittest.TestSuite(test_suites)
|
||||
runner = unittest.TextTestRunner(verbosity=2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue