ConsoleExample.config 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Example configuration file to be passed to NCoverExplorer-Console.exe using /config: switch -->
  3. <!-- If not supplied, then the same defaults will be used as the NCoverExplorer GUI. -->
  4. <ConsoleSetting xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <!-- Name attribute is title to appear on the report (equivalent to /project:xx). Default is blank. -->
  6. <ProjectName>Example.Project</ProjectName>
  7. <!-- Names of the coverage files to merge/report on. Wildcards can be used. -->
  8. <CoverageFileNames>
  9. <CoverageFileName>*.Coverage.xml</CoverageFileName>
  10. </CoverageFileNames>
  11. <!-- Report to be generated by running NCoverExplorer.Console. Default is "None". Other possible values are:
  12. "ModuleSummary", "ModuleNamespaceSummary",
  13. "ModuleClassSummary", "ModuleClassFunctionSummary"
  14. -->
  15. <ReportType>ModuleClassSummary</ReportType>
  16. <!-- Filename for the output html report if wanting to generate one. -->
  17. <HtmlReportFileName>C:\MyCoverageReport.html</HtmlReportFileName>
  18. <!-- Filename for the output xml report (for use by cc.net) if wanting to generate one. -->
  19. <XmlReportFileName>C:\MyCoverageReport.xml</XmlReportFileName>
  20. <!-- File name for the output merged coverage.xml file if any resulting from merging the inputs. -->
  21. <!--<MergeFileName>C:\MyCoverageMerged.xml</MergeFileName>-->
  22. <!-- Whether to show the excluded elements in the footer of the output report if being generated. Default is false. -->
  23. <!--<ShowExcludedFooter>True</ShowExcludedFooter>-->
  24. <!-- Whether to suppress virtually all console output when running. Default is false. -->
  25. <!--<NoLog>True</NoLog>-->
  26. <!-- Threshold for acceptance criteria for coverage reports detailing acceptable coverage levels. Default is 95% -->
  27. <!--<SatisfactoryCoverageThreshold>95</SatisfactoryCoverageThreshold>-->
  28. <!-- Threshold for acceptance criteria for coverage reports detailing acceptable coverage as #seqPts rather than %. Default is 0. -->
  29. <!--<SatisfactoryUnvisitedSequencePoints>2</SatisfactoryUnvisitedSequencePoints> -->
  30. <!-- Threshold for acceptance criteria for coverage reports detailing acceptable function coverage levels. Default is 80% -->
  31. <!--<SatisfactoryFunctionThreshold>80</SatisfactoryFunctionThreshold> -->
  32. <!-- Threshold for acceptance criteria for coverage reports detailing acceptable function coverage levels. Default is 80% -->
  33. <!--<SatisfactoryFunctionThreshold>80</SatisfactoryFunctionThreshold> -->
  34. <!-- Filtering to be applied to the results. Use integer or named value. Default is "None". Possible values:
  35. "None" (0),
  36. "HideUnvisited" (1),
  37. "HideFullyCovered" (2),
  38. "HideThresholdCovered" (3)
  39. -->
  40. <TreeFilterStyle>None</TreeFilterStyle>
  41. <!-- Sorting to be applied to the results. Use integer or named value. Default is "Name". Possible values:
  42. "Name" (0),
  43. "ClassLine" (1),
  44. "CoveragePercentageAscending" (2), "CoveragePercentageDescending" (3),
  45. "UnvisitedSequencePointsAscending" (4), "UnvisitedSequencePointsDescending" (5),
  46. "VisitCountAscending" (6), "VisitCountDescending" (7)
  47. "FunctionCoverageAscending" (8), "FunctionCoverageDescending" (9),
  48. -->
  49. <TreeSortStyle>Name</TreeSortStyle>
  50. <!-- Coverage exclusions to exclude specified assemblies, namespaces and/or classes. -->
  51. <CoverageExclusions>
  52. <CoverageExclusion>
  53. <ExclusionType>Assembly</ExclusionType>
  54. <!-- Valid values are [Assembly], [Namespace] and [Class]. -->
  55. <Pattern>*.Tests</Pattern>
  56. <IsRegex>false</IsRegex>
  57. <!-- Only required with a value of "true" if you do have a regular expression based pattern -->
  58. </CoverageExclusion>
  59. <CoverageExclusion>
  60. <ExclusionType>Namespace</ExclusionType>
  61. <Pattern>*.My*</Pattern>
  62. </CoverageExclusion>
  63. </CoverageExclusions>
  64. <!-- Module specific coverage thresholds if any, -->
  65. <!--<ModuleThresholds>
  66. <ModuleThreshold ModuleName="NCoverExplorer.Core.dll" SatisfactoryCoverage="30" />
  67. </ModuleThresholds>-->
  68. <!-- Whether to return a failure exit code if any module is below the minimum coverage threshold. Default is false. -->
  69. <!--<FailIfBelowMinimum>True</FailIfBelowMinimum> -->
  70. <!-- Whether to return a failure exit code if total coverage is below the minimum coverage threshold. Default is false. -->
  71. <!--<FailIfBelowCombinedMinimum>True</FailIfBelowCombinedMinimum> -->
  72. <!-- For use with the FailIfXXX options - the minimum coverage threshold if not specifying at the module level. -->
  73. <!--<MinimumCoverage>True</MinimumCoverage> -->
  74. <!-- Whether to suppress virtually all console output when running. Default is false. -->
  75. <!--<NoLog>True</NoLog> -->
  76. </ConsoleSetting>