Maybe we'd have to mix tools to munge the profiling data and provide a
uniformised set in return.
Like:
- vsinstr + a port of rcov for windows
- mono profiler + port of rcov again on mac / linux

just a thought, but from a user perspective I am definitely interested to
see a mix of C# and Ruby stacks into one view.

That's a project on its own though :)

-- Thibaut

On Wed, Sep 23, 2009 at 6:09 PM, Tomas Matousek <
tomas.matou...@microsoft.com> wrote:

> 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
>
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to