If you want to get coverage numbers for C# code you should be able to do: set PERF_TOOLS=%VSINSTALLDIR%\Team Tools\Performance Tools set DSTDIR=an empty directory to store dlls you want to instrument to (the tests must load them from here)
# instrument each dll for which you want to get the coverage numbers "%PERF_TOOLS%\vsinstr.exe" /coverage /outputpath:%DSTDIR% your.dll # start code coverage service: "%PERF_TOOLS%\vsperfcmd.exe" /start:coverage /OUTPUT:report_file # run your unit tests here # stop code coverage service "%PERF_TOOLS%\vsperfcmd.exe" /shutdown Open report_file.coverage in VS. Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, September 23, 2009 2:19 AM To: ironruby-core Subject: [Ironruby-core] code coverage of ironruby code Hi Is there a way to get the code coverage when running RSpec or Test::Unit stuff with ironruby? It would help me a lot to set build tresholds etc. Because I guess the C# tools won't be able to do it and the ruby tools neither. Is it in the cards? What would it take to implement something like that for IronRuby? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero)
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core