[Mono-list] Code coverage on mono with nant and nunit2 (linux)

arthursv arthursv at linux.vnet.ibm.com
Fri Oct 17 13:43:36 EDT 2008


Hi, I am working on a code that is running nunit2 tests and I wanted to
ingrate a code coverage tool to it. I saw the page here in mono about code
coverage and there is no mention of how to insert that --profile option of
mono to a nant buildfile with nunit2.  (it can be either the monocov or the
built-in for now, just can't be Ncover or other proprietary options)
This would be  (some) my code:
<target name="test" depends="build">
   <nunit2 failonerror="true" verbose="true">
      <formatter type="Plain" />
      <test>
        <assemblies>
          <include name="Test.dll" />
          <include name="Test2.dll" />
          (...)
        </assemblies>
      </test>
    </nunit2>
</target>

Is there something I can insert ther eto use the code coverage?

Thanks
-- 
View this message in context: http://www.nabble.com/Code-coverage-on-mono-with-nant-and-nunit2-%28linux%29-tp20037963p20037963.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list