The author recently returned from a vacation and used the time to work on coverage.py, releasing version 7.10 with new features and fixes. One major feature is the [run] patch configuration option, which allows users to specify named patches to monkey-patch behavior that interferes with coverage measurement. The first patch is for subprocess, which automatically measures coverage of sub-processes created by a program. This patch handles sub-processes created by various methods, including the subprocess module and os.system() function. A user has expressed excitement about this new feature, calling it a "Christmas present". Another patch is for _exit, which saves coverage data before the program exits abruptly. The third patch is for execv, which saves coverage data before the current program is ended and replaced with a new one. The author notes that these patches should have been implemented sooner, but are now available to make coverage measurement easier. Other features include the ability to save collected data to disk by sending a user signal to the coverage process, and improvements to HTML coloring and default exclusions. The author feels that this release is a significant step forward and encourages users to try it out.
nedbatchelder.com
nedbatchelder.com
