This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nedbat
Recipients ncoghlan, nedbat, pitrou, serhiy.storchaka
Date 2012-05-14.19:02:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337022173.4.0.749900428382.issue14803@psf.upfronthosting.co.za>
In-reply-to
Content
The difficulty that coverage faces is not measuring python programs started from the command line like this, you can use "coverage run myprog.py" or "python -m coverage run myprog.py".

The difficulty is when there are subprocesses running python programs.  Read http://nedbatchelder.com/code/coverage/subprocess.html for the two current hacks used to invoke coverage on subprocesses.  If -C is implemented, it should have a PYTHONRUNFIRST environment variable (or the like) to make these hacks unnecessary.
History
Date User Action Args
2012-05-14 19:02:53nedbatsetrecipients: + nedbat, ncoghlan, pitrou, serhiy.storchaka
2012-05-14 19:02:53nedbatsetmessageid: <1337022173.4.0.749900428382.issue14803@psf.upfronthosting.co.za>
2012-05-14 19:02:52nedbatlinkissue14803 messages
2012-05-14 19:02:52nedbatcreate