I was working on Python module coverage test generation tonight (sample results in the morning!). I noticed that coverage of the random module wasn't very good (30%-40% lines executed). There was no regression test case for that module, but I saw there was a random.test() function, so I created the following simple regression test: import random random.test() Statement coverage jumped immediately to nearly 90%. Seems to me that if a module defines a test() function and we have no regression test file for the module, that the above trick may increase code coverage significantly. (Actually, perhaps in these cases the test() function and related bits should be copied to the relevant regression test file to avoid invisible coupling between the module and its regression test output.) Skip
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4