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 -~----------~----~----~----~------~----~------~--~---
