malthe / chameleon

Fast HTML/XML template engine for Python
https://chameleon.readthedocs.io
Other
177 stars 64 forks source link

Investigate coverage for templates #193

Open tseaver opened 9 years ago

tseaver commented 9 years ago

In http://permalink.gmane.org/gmane.comp.python.testing.general/6187, Ned Batchelder announces support for coverage of non-Python

Although that announcement shows Django template support, he mentions Mako (needing fixes from them) and pluggability for other template systems.

malthe commented 9 years ago

I wonder if coverage can be made to catalogue the generated .py files directly. The code generator could then insert appropriate # nocover pragmas if necessary.

I think this is a better approach than instrumenting the template engine which is what I think he's suggesting.