Can I add code coverage support in GAEUnit?

One of the requested GAEUnit features for over a year is code coverage support. Is it technically possible to add GAEUnit support for coverage so that after the tests are completed, a report can be generated on which modules were tested and what is the coverage of each module?

I can use cover.py to run dev_appserver and generate a GAE application coverage report for python, but this requires a local system configuration. One of the nice things about gaeunit is the ability to easily add it as an application to any python gae application so that any user downloading the application can run the included tests. My ideal scenario would simply extend gaeunit and add coverage data to the bottom of the report. Therefore, ideally, the modification will be performed inside dev_appserver as an application, like gaeunit.

Is it technically possible? Which approach would you recommend?

+5
source share
1 answer

Coverage.py API, . GAEUnit, service.py, .

+2

All Articles