[IronPython] Code Coverage

Hernan Martinez Foffani hernan at orgmf.com.ar
Thu Jun 22 17:59:34 CEST 2006


> Unfortunately all the Python code coverage tools use ``sys.settrace``
> which isn't implemented in IronPython. This (I guess) is because Python
> stack frames and code objects aren't used in IronPython.
> .
> .
> .
> Two alternative ideas.
> 1) Implement a 'cut down' version of sys.settrace which only implements
> what is possible.
> 2) Alternatively a callback hook on the C# side could be implemented, so
> that as IronPython enters a new line we could cache this information -
> and generate a report once execution has stopped.

Profilers, Debugger and Coverage tools for .NET use the
.NET Profiling API.

Has anyone tried these with IronPython?

-H.



More information about the Ironpython-users mailing list