I am trying to figure out which lines of a Flask application are running. I run Flask as follows:
coverage run manage.py runserver
The result is as follows:
* Running on http://127.0.0.1:5000/ * Restarting with reloader
manage.py looks like this:
#!/usr/bin/env python from flask.ext.script import Manager from my_flask_app import app manager = Manager(app) if __name__ == '__main__': manager.run()
Then I access the various parts of the application through HTTP.
When I look at the HTML coverage report, it says that only method definitions are considered, not the actual method bodies.
I suspect this because the methods are executed by a subprocess that is not covered by cover.py.
Any ideas?
python flask coverage.py
Julian Pistorius
source share