[Mono-devel-list] coverage tool

Paolo Molaro lupus at ximian.com
Thu Jun 12 10:05:35 EDT 2003


I changed the profiler code in the runtime to be able to load
external modules that implement the profiling interface.
This should help people write all sorts of useful tool that can inpect
the internal state of the runtime while it is executing.
Attached, you'll find a simple module that does method coverage:
you provide an assembly name and an optional namespace and run your app
under the profiler: at the end you'll get a list of methods in the
assembly/namespace that have not been executed.
This should be mostly useful for checking whether a test suite covers
all the methods in an assembly. I'll add basic-block level coverage to
the profiling API to make the tool more accurate in the future.

Sample usage is:
	mono --profile=cov:your_assembly/namespace test_suite.exe
or simply:
	mono --profile=cov:your_assembly test_suite.exe

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-cov.c
Type: text/x-csrc
Size: 2923 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030612/77bd3c03/attachment.bin 


More information about the Mono-devel-list mailing list