Hi Jeff,

Looks great, thanks for your time and effort!

Greets,
Bruno

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Jeff Brown
Sent: vrijdag 13 maart 2009 19:03
To: [email protected]
Subject: MbUnit Re: CoverageExclude attribute


Try build 716 or more recent from http://ccnet.gallio.org/Distributables/

To pass along extra command-line arguments, use the <runner-properties>
element with NAnt like this:

<gallio ...>
  <runner-property value="NCoverArguments='//eas Gallio'" />
  ... other options...
</gallio>

You can also change where the coverage file goes like this:

<gallio ...>
  <runner-property value="NCoverCoverageFile='c:\somepath\coverage.xml'" />
  ... other options...
</gallio>

Jeff. 

P.S.  In build 715 the element was called "runner-properties", this has been
changed.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Bruno Wouters
Sent: Thursday, March 12, 2009 1:37 AM
To: [email protected]
Subject: MbUnit Re: CoverageExclude attribute


Thanks!

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Jeff Brown
Sent: donderdag 12 maart 2009 9:27
To: [email protected]
Subject: MbUnit Re: CoverageExclude attribute


First available in a build sometime tomorrow... will be released in v3.0.6.

Jeff.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Bruno Wouters
Sent: Thursday, March 12, 2009 12:52 AM
To: [email protected]
Subject: MbUnit Re: CoverageExclude attribute


Hi Jeff,

That's great news! In which version do you expect this to be in?

Thanks

Greets,
Bruno

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Jeff Brown
Sent: woensdag 11 maart 2009 21:28
To: [email protected]
Subject: MbUnit Re: CoverageExclude attribute


Working on it now.

(This has been a popular request.)

Jeff. 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Bruno Wouters
Sent: Wednesday, March 11, 2009 4:38 AM
To: MbUnit.User
Subject: MbUnit CoverageExclude attribute


Hi all,

I'm using the following nant script to run my tests with the ncover runner.
I noticed that it does not take the CoverageExclude attribute in to account.
Are there better/other html report generators than ncoverexplorer? Or is
there a way to fix this? Can I pass arguments to the ncover process (e.g.
//ea CoverageExclude)?

        <loadtasks assembly="${ToolsPath}\Gallio\bin\Gallio.NAntTasks.dll"
/>
        <target name="test" depends="build">
          <echo message="Started testing ${AssemblyToTest}"/>
          <gallio
            result-property="exitCode"
            runner-type="NCover"
            failonerror="false" >
            <runner-extension
value="TeamCityExtension,Gallio.TeamCityIntegration" />
            <assemblies>
                <include name="${AssemblyToTest}" />
            </assemblies>
          </gallio>
          <fail if="${exitCode != '0'}" >One or more tests failed. Please
check the log for more details</fail>
        </target>



        <loadtasks assembly="${ToolsPath}\NCoverExplorer.Extras\bin
\NCoverExplorer.NAntTasks.dll" />
        <target name="gencoverreport" depends="test">
          <echo message="Generating coverage report for ${TestAssemblyDll}
and excluding ${AssemblysToExcludeFromCoverage} and $ {TestAssemblyName}"/>
          <ncoverexplorer
            program="${ToolsPath}\NCoverExplorer\NCoverExplorer.Console.exe"
            outputDir="${ReportsPath}"
            satisfactoryCoverage="90"
            minimumCoverage="90"
            reportType="ModuleClassFunctionSummary"
            htmlReportName="CoverageSummary.html"
            failMinimum="True"
            showExcluded="False">
            <fileset>
                <include name="${WorkingDirectory}\Coverage.xml" />
            </fileset>
            <exclusions>
                <exclusion type="Assembly" pattern="Gallio*" />
                <exclusion type="Assembly" pattern="MbUnit*" />
                <exclusion type="Assembly" pattern="*CoverageExclude*" />
                <exclusion type="Assembly" pattern="${TestAssemblyName}" />
                <exclusion type="Assembly" pattern="$
{AssemblysToExcludeFromCoverage}" isRegex="true" />
            </exclusions>
            <moduleThresholds>
                <moduleThreshold moduleName="${TestedAssemblyDll}"
satisfactoryCoverage="${SatisfactoryCoverage}" />
            </moduleThresholds>
           </ncoverexplorer>
        </target>

Thanks!
Bruno













--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to