I'm experiencing odd behavior I'm hoping you can help with.
I'm invoking coverage like this--
$ coverage run --source=my_package scripts/run_tests.py && coverage report
run_tests.py executes a function like this:
def main(): unittest.TestProgram(module=None)
Everything works as expected. However, if I add
import my_package to the top of
run_tests.py, then I get coverage's "No data was collected" warning.
Is there a reason this doesn't work, and is there a way around it? Thanks.