NCoverExplorer.MSBuildTasks.xml 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>NCoverExplorer.MSBuildTasks</name>
  5. </assembly>
  6. <members>
  7. <member name="T:NCoverExplorer.Common.NCoverLogLevel">
  8. <summary>
  9. Logging levels to use within NCover task.
  10. </summary>
  11. </member>
  12. <member name="F:NCoverExplorer.Common.NCoverLogLevel.Quiet">
  13. <summary>No logging.</summary>
  14. </member>
  15. <member name="F:NCoverExplorer.Common.NCoverLogLevel.Normal">
  16. <summary>Writes standard log output (Default).</summary>
  17. </member>
  18. <member name="F:NCoverExplorer.Common.NCoverLogLevel.Verbose">
  19. <summary>Writes verbose log output.</summary>
  20. </member>
  21. <member name="T:NCoverExplorer.Common.NCoverXmlFormat">
  22. <summary>
  23. New element option introduced in NCover 1.5.7 for use with //x2 argument.
  24. </summary>
  25. </member>
  26. <member name="F:NCoverExplorer.Common.NCoverXmlFormat.Xml1">
  27. <summary>
  28. Legacy xml format that is the default.
  29. </summary>
  30. </member>
  31. <member name="F:NCoverExplorer.Common.NCoverXmlFormat.Xml2">
  32. <summary>
  33. New xml format introduced in NCover 1.5.7 that nests method nodes with class nodes.
  34. </summary>
  35. </member>
  36. <member name="T:NCoverExplorer.Common.TreeSortStyle">
  37. <summary>
  38. Sort order for displaying the coverage results in the tree.
  39. </summary>
  40. </member>
  41. <member name="F:NCoverExplorer.Common.TreeSortStyle.Name">
  42. <summary>Sort by name (default). (0)</summary>
  43. </member>
  44. <member name="F:NCoverExplorer.Common.TreeSortStyle.ClassLine">
  45. <summary>Sort by name( down to class level) then by line within the class. (1)</summary>
  46. </member>
  47. <member name="F:NCoverExplorer.Common.TreeSortStyle.CoveragePercentageAscending">
  48. <summary>Sort by coverage percentage ascending. (2)</summary>
  49. </member>
  50. <member name="F:NCoverExplorer.Common.TreeSortStyle.CoveragePercentageDescending">
  51. <summary>Sort by coverage percentage descending. (3)</summary>
  52. </member>
  53. <member name="F:NCoverExplorer.Common.TreeSortStyle.UnvisitedSequencePointsAscending">
  54. <summary>Sort by unvisited lines ascending. (4)</summary>
  55. </member>
  56. <member name="F:NCoverExplorer.Common.TreeSortStyle.UnvisitedSequencePointsDescending">
  57. <summary>Sort by unvisited lines descending. (5)</summary>
  58. </member>
  59. <member name="F:NCoverExplorer.Common.TreeSortStyle.VisitCountAscending">
  60. <summary>Sort by visit count ascending. (6)</summary>
  61. </member>
  62. <member name="F:NCoverExplorer.Common.TreeSortStyle.VisitCountDescending">
  63. <summary>Sort by visit count descending. (7)</summary>
  64. </member>
  65. <member name="F:NCoverExplorer.Common.TreeSortStyle.FunctionCoverageAscending">
  66. <summary>Sort by function coverage ascending. (8)</summary>
  67. </member>
  68. <member name="F:NCoverExplorer.Common.TreeSortStyle.FunctionCoverageDescending">
  69. <summary>Sort by function coverage descending. (9)</summary>
  70. </member>
  71. <member name="T:NCoverExplorer.Common.TreeFilterStyle">
  72. <summary>
  73. Filter styles that can be applied to the results. Filtered nodes are not excluded from the coverage
  74. statistics.
  75. </summary>
  76. </member>
  77. <member name="F:NCoverExplorer.Common.TreeFilterStyle.None">
  78. <summary>No filter applied. (0)</summary>
  79. </member>
  80. <member name="F:NCoverExplorer.Common.TreeFilterStyle.HideUnvisited">
  81. <summary>Hide unvisited nodes. (1)</summary>
  82. </member>
  83. <member name="F:NCoverExplorer.Common.TreeFilterStyle.HideFullyCovered">
  84. <summary>Hide 100% fully covered nodes. (2)</summary>
  85. </member>
  86. <member name="F:NCoverExplorer.Common.TreeFilterStyle.HideThresholdCovered">
  87. <summary>Hide nodes exceeding coverage threshold. (3)</summary>
  88. </member>
  89. <member name="T:NCoverExplorer.Common.CoverageReportType">
  90. <summary>
  91. Potential report types.
  92. </summary>
  93. </member>
  94. <member name="F:NCoverExplorer.Common.CoverageReportType.None">
  95. <summary>None. (0)</summary>
  96. </member>
  97. <member name="F:NCoverExplorer.Common.CoverageReportType.ModuleSummary">
  98. <summary>Modules summary only. (1)</summary>
  99. </member>
  100. <member name="F:NCoverExplorer.Common.CoverageReportType.ModuleNamespaceSummary">
  101. <summary>Modules summary followed with a namespaces by module summary. (3)</summary>
  102. </member>
  103. <member name="F:NCoverExplorer.Common.CoverageReportType.ModuleClassSummary">
  104. <summary>Modules summary followed with a classes by namespace summary. (4)</summary>
  105. </member>
  106. <member name="F:NCoverExplorer.Common.CoverageReportType.ModuleClassFunctionSummary">
  107. <summary>Modules summary followed with a classes by namespace summary showing function coverage. (5)</summary>
  108. </member>
  109. <member name="T:NCoverExplorer.Common.NCoverUtilities">
  110. <summary>
  111. Common utility functions for working with NCover.
  112. </summary>
  113. </member>
  114. <member name="F:NCoverExplorer.Common.NCoverUtilities.NCOVER_PROFILER_CLSID">
  115. <summary>
  116. Registry key for registering NCover manually - this will all become unnecessary in future versions of NCover (post 1.5.5) hopefully.
  117. </summary>
  118. </member>
  119. <member name="M:NCoverExplorer.Common.NCoverUtilities.BuildTempSettingsXmlFileForNCover(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String[],System.String,NCoverExplorer.Common.NCoverLogLevel,System.String,System.String,System.Boolean,System.String,NCoverExplorer.Common.NCoverXmlFormat,System.String)">
  120. <summary>
  121. Builds the temp settings XML file for NCover.
  122. </summary>
  123. <param name="version">The version.</param>
  124. <param name="ncoverPath">The ncover path.</param>
  125. <param name="settingsFile">The settings file.</param>
  126. <param name="commandLineExe">The command line exe.</param>
  127. <param name="commandLineArgs">The command line args.</param>
  128. <param name="workingDirectory">The working directory.</param>
  129. <param name="assemblyList">The assembly list.</param>
  130. <param name="assemblyFiles">The assembly files.</param>
  131. <param name="coverageFile">The coverage file.</param>
  132. <param name="logLevel">The log level.</param>
  133. <param name="logFile">The log file.</param>
  134. <param name="excludeAttributes">The exclude attributes.</param>
  135. <param name="profileIIS">If set to <c>true</c> profile IIS.</param>
  136. <param name="profileService">The profile service.</param>
  137. <param name="xmlFormat">The XML format to write out (new feature in 1.5.7).</param>
  138. <param name="profiledProcessModule">Name of the profiled process.</param>
  139. <returns>
  140. Command line switch necessary for passing as an argument.
  141. </returns>
  142. </member>
  143. <member name="M:NCoverExplorer.Common.NCoverUtilities.CreateCommandLineArguments(System.String,System.String,System.String,System.String,System.String,System.String,System.String,NCoverExplorer.Common.NCoverLogLevel,System.String,System.String,System.Boolean,System.String,System.Boolean,System.Boolean,System.String)">
  144. <summary>
  145. Creates the command line arguments.
  146. </summary>
  147. <param name="version">The version.</param>
  148. <param name="ncoverPath">The ncover path.</param>
  149. <param name="commandLineExe">The command line exe.</param>
  150. <param name="commandLineArgs">The command line args.</param>
  151. <param name="workingDirectory">The working directory.</param>
  152. <param name="assemblyList">The assembly list.</param>
  153. <param name="coverageFile">The coverage file.</param>
  154. <param name="logLevel">The log level.</param>
  155. <param name="logFile">The log file.</param>
  156. <param name="excludeAttributes">The exclude attributes.</param>
  157. <param name="profileIIS">if set to <c>true</c> [profile IIS].</param>
  158. <param name="profileService">The profile service.</param>
  159. <param name="includeFormatting">if set to <c>true</c> include formatting.</param>
  160. <param name="registerCoverLib">Whether to register CoverLib.dll.</param>
  161. <param name="commandLineFormatToken">The command line format token.</param>
  162. <returns></returns>
  163. </member>
  164. <member name="M:NCoverExplorer.Common.NCoverUtilities.RegisterNCover(System.String)">
  165. <summary>
  166. Registers the NCover coverlib.dll by writing directly into the registry under HKCU.
  167. Keeps a reference count so only register if only NCover task currently running.
  168. </summary>
  169. </member>
  170. <member name="M:NCoverExplorer.Common.NCoverUtilities.UnregisterNCover">
  171. <summary>
  172. Unregisters the NCover coverlib.dll
  173. Keeps a reference count so only unregister if last NCover task currently running.
  174. </summary>
  175. </member>
  176. <member name="M:NCoverExplorer.Common.NCoverUtilities._ReadNCoverConsoleVersion(System.String)">
  177. <summary>
  178. Find path to NCover console and retrieve the version info.
  179. </summary>
  180. </member>
  181. <member name="M:NCoverExplorer.Common.NCoverUtilities.GetFileContents(System.String)">
  182. <summary>
  183. Reads the file contents and returns as a string.
  184. </summary>
  185. </member>
  186. <member name="M:NCoverExplorer.Common.NCoverUtilities._BuildTempSettingsXmlFileForNCover133(System.String,System.String,System.String,System.String,System.String,System.String[],System.String,NCoverExplorer.Common.NCoverLogLevel,System.String)">
  187. <summary>
  188. Build the Xml .ncoversettings file to pass to the NCover.Console executable using NCover 1.3.3 syntax.
  189. </summary>
  190. </member>
  191. <member name="M:NCoverExplorer.Common.NCoverUtilities._WriteAssemblyNamesForNCover133(System.String,System.String[],System.Xml.XmlTextWriter)">
  192. <summary>
  193. Write assembly names as a semi-colon delimited unique assembly name list.
  194. Assembly names do not have extensions (how NCover requires them) to match how the
  195. CLR identifies them when being profiled.
  196. </summary>
  197. </member>
  198. <member name="M:NCoverExplorer.Common.NCoverUtilities._BuildTempSettingsXmlFileForNCover15(System.Int32,System.String,System.String,System.String,System.String,System.String,System.String[],System.String,NCoverExplorer.Common.NCoverLogLevel,System.String,System.String,System.Boolean,System.String,NCoverExplorer.Common.NCoverXmlFormat,System.String)">
  199. <summary>
  200. Build the Xml .ncoversettings file to pass to the NCover.Console executable using NCover 1.5 syntax.
  201. </summary>
  202. </member>
  203. <member name="M:NCoverExplorer.Common.NCoverUtilities._WriteAssemblyNodes(System.String,System.String[],System.Xml.XmlTextWriter)">
  204. <summary>
  205. Writes assembly names as separate Assembly nodes in the settings file. Seems to be a
  206. difference in how NCover 1.5.4 onwards handles from previous versions in the xml.
  207. </summary>
  208. </member>
  209. <member name="M:NCoverExplorer.Common.NCoverUtilities._BuildCommandLineForNCover133(System.String,System.String,System.String,System.String,System.String,NCoverExplorer.Common.NCoverLogLevel,System.String,System.String)">
  210. <summary>
  211. Build a command line using NCover 1.3.3 syntax.
  212. </summary>
  213. </member>
  214. <member name="M:NCoverExplorer.Common.NCoverUtilities._BuildCommandLineForNCover15(System.Int32,System.String,System.String,System.String,System.String,System.String,NCoverExplorer.Common.NCoverLogLevel,System.String,System.String,System.Boolean,System.String,System.Boolean,System.String)">
  215. <summary>
  216. Build a command line using NCover 1.5.x syntax.
  217. </summary>
  218. </member>
  219. <member name="M:NCoverExplorer.Common.NCoverUtilities._RegisterNCoverInHKCURegistry(System.String)">
  220. <summary>
  221. Creates the necessary HKCU entries for the NCover coverlib.dll.
  222. </summary>
  223. <param name="ncoverPath">The ncover path.</param>
  224. </member>
  225. <member name="M:NCoverExplorer.Common.NCoverUtilities._ConsoleCtrlCheck(NCoverExplorer.Common.NCoverUtilities.CtrlTypes)">
  226. <summary>
  227. Handles a control-C style event so we can cleanup our refcount.
  228. </summary>
  229. <param name="ctrlType">Type of control exit.</param>
  230. <returns>Whether to cancel the event.</returns>
  231. </member>
  232. <member name="T:NCoverExplorer.Common.PathSearch">
  233. <summary>
  234. Utility class to scan for an executable in all available paths.
  235. Based on CodeProject article at: http://www.codeproject.com/csharp/winwhich.asp
  236. </summary>
  237. </member>
  238. <member name="M:NCoverExplorer.Common.PathSearch.#ctor">
  239. <summary>
  240. Initializes a new instance of the <see cref="T:NCoverExplorer.Common.PathSearch"/> class.
  241. </summary>
  242. </member>
  243. <member name="M:NCoverExplorer.Common.PathSearch.GetVersionForExecutable(System.String,System.Boolean)">
  244. <summary>
  245. Return the version information for the executable located at this path. If executable
  246. not found at this location (e.g. not a fully qualified path) does a path search to see
  247. if it can be found anywhere else.
  248. </summary>
  249. <param name="executablePath">Path to executable to find.</param>
  250. <param name="throwExceptionIfNotFound">Whether to throw exception if not found.</param>
  251. <returns>Version number in format Major.Minor.Build</returns>
  252. </member>
  253. <member name="M:NCoverExplorer.Common.PathSearch.Search(System.String)">
  254. <summary>
  255. Searches for the specified executable name in all available paths.
  256. </summary>
  257. <param name="executableName">Name of the executable.</param>
  258. <returns></returns>
  259. </member>
  260. <member name="M:NCoverExplorer.Common.PathSearch._GetRegExString(System.String)">
  261. <summary>
  262. Form the regular expression string for the matching file.
  263. </summary>
  264. <param name="executableName">The name of the executable</param>
  265. <returns>string that is the regex pattern.</returns>
  266. </member>
  267. <member name="T:NCoverExplorer.MSBuildTasks.NCoverExplorer">
  268. <summary>
  269. MSBuild task for automating NCoverExplorer.Console.
  270. Using this task you can merge coverage files from NCover, produce xml coverage reports for use
  271. with CruiseControl.Net, produce html report files directly, fail automated builds if coverage
  272. thresholds are not met and apply a range of detail to the reports produced such as sorting,
  273. filtering and coverage exclusions.
  274. </summary>
  275. <example>
  276. This example shows producing an xml coverage report at Module/Namespace/Class detail level for
  277. inclusion on a CC.Net build server. You would add a merge file task in the publishers section
  278. of your CC.Net project file to merge in this "CoverageSummary.xml" file so that it can be
  279. transformed by the NCoverExplorer xsl stylesheets you have copied into the CC.Net folder. Here
  280. we have set a satisfactory coverage threshold at 80%.
  281. <code>
  282. <![CDATA[
  283. <ItemGroup>
  284. <CoverageFile Include="$(MSBuildProjectDirectory)\Coverage\Coverage.xml" />
  285. </ItemGroup>
  286. <NCoverExplorer ToolPath="Tools\NCoverExplorer\"
  287. ProjectName="My Project"
  288. OutputDir="$(MSBuildProjectDirectory)\Coverage"
  289. CoverageFiles="@(CoverageFile)"
  290. SatisfactoryCoverage="80"
  291. ReportType="4"
  292. XmlReportName="CoverageSummary.xml"
  293. />
  294. ]]>
  295. </code>
  296. </example>
  297. <example>
  298. This example shows producing an html function coverage report, excluding the test assemblies. The
  299. assemblies excluded are being displayed at the bottom of the report. Note also that this time
  300. the ReportType is specified by its enum name rather than numeric value - they are interchangable.
  301. We have also "inlined" the "CoverageFiles" from the ItemGroup above to show this can be done.
  302. <code>
  303. <![CDATA[
  304. <PropertyGroup>
  305. <CoverageExclusions>
  306. <CoverageExclusion>
  307. <ExclusionType>Assembly</ExclusionType>
  308. <Pattern>*.Tests</Pattern>
  309. </CoverageExclusion>
  310. </CoverageExclusions>
  311. </PropertyGroup>
  312. <NCoverExplorer ToolPath="Tools\NCoverExplorer\"
  313. ProjectName="My Project"
  314. OutputDir="$(MSBuildProjectDirectory)\Coverage"
  315. CoverageFiles="$(MSBuildProjectDirectory)\Coverage\Coverage.xml"
  316. SatisfactoryCoverage="80"
  317. ReportType="ModuleClassFunctionSummary"
  318. HtmlReportName="CoverageSummary.html"
  319. Exclusions="$(CoverageExclusions)"
  320. ShowExcluded="True"
  321. />
  322. ]]>
  323. </code>
  324. </example>
  325. <example>
  326. This example shows producing an html module class summary coverage report with exclusions as above.
  327. This time we have added applying specific sorting and filtering criteria. This report will show all
  328. classes that do not have 100% coverage, sorted within their namespaces by descending coverage %. We
  329. have also "inlined" the exclusions
  330. <code>
  331. <![CDATA[
  332. <NCoverExplorer ToolPath="Tools\NCoverExplorer\"
  333. ProjectName="My Project"
  334. OutputDir="$(MSBuildProjectDirectory)\Coverage"
  335. CoverageFiles="$(MSBuildProjectDirectory)\Coverage\Coverage.xml"
  336. SatisfactoryCoverage="80"
  337. ReportType="ModuleClassSummary"
  338. HtmlReportName="CoverageSummary.html"
  339. Exclusions="Assembly=*.Tests;"
  340. ShowExcluded="True"
  341. Sort="CoveragePercentageDescending"
  342. Filter="HideFullyCovered"
  343. />
  344. ]]>
  345. </code>
  346. </example>
  347. <example>
  348. This example shows the merging capability to produce a consolidated merge file from multiple
  349. coverage test runs. The results are being stored in a single "MyApp.CoverageMerged.xml" file.
  350. Note that you could additionally apply coverage exclusions at this point. Merging files can
  351. be useful if your testing process requires multiple coverage runs and you want a single archive
  352. which consolidates the results.
  353. <code>
  354. <![CDATA[
  355. <ItemGroup>
  356. <CoverageFile Include="$(MSBuildProjectDirectory)\Coverage\MyApp*.Coverage.xml" />
  357. </ItemGroup>
  358. <NCoverExplorer ToolPath="Tools\NCoverExplorer\"
  359. OutputDir="$(MSBuildProjectDirectory)\Coverage"
  360. ReportType="None"
  361. CoverageFiles="@(CoverageFile)"
  362. MergeFileName="MyApp.CoverageMerged.xml"
  363. />
  364. ]]>
  365. </code>
  366. </example>
  367. <example>
  368. This example shows failing a build if the overall coverage % does not meet our threshold, without
  369. producing a coverage report.
  370. <code>
  371. <![CDATA[
  372. <NCoverExplorer ToolPath="Tools\NCoverExplorer\"
  373. ProjectName="My Project"
  374. ReportType="None"
  375. CoverageFiles="$(MSBuildProjectDirectory)\Coverage\Coverage.xml"
  376. MinimumCoverage="80"
  377. FailMinimum="True"
  378. />
  379. ]]>
  380. </code>
  381. </example>
  382. <example>
  383. This example shows failing a build if either the overall coverage % does not meet our threshold, or
  384. if one of the individual module thresholds is not met. Note that the ModuleThresholds
  385. could have been "inlined" (just showing the MSBuild flexibility to place in a separate group).
  386. <code>
  387. <![CDATA[
  388. <ItemGroup>
  389. <ModuleThreshold Include="MyProject.1.dll=75" />
  390. <ModuleThreshold Include="MyProject.2.dll=85" />
  391. </ItemGroup>
  392. <NCoverExplorer ToolPath="Tools\NCoverExplorer\"
  393. ProjectName="My Project"
  394. ReportType="None"
  395. CoverageFiles="$(MSBuildProjectDirectory)\Coverage\Coverage.xml"
  396. MinimumCoverage="80"
  397. FailMinimum="True"
  398. ModuleThresholds="@(ModuleThreshold)"
  399. />
  400. ]]>
  401. </code>
  402. </example>
  403. <example>
  404. This example shows using virtually the whole range of attributes. Shown below is failing a build
  405. if not reaching the overall or module level coverage thresholds. The results of merging multiple
  406. NCover files together are stored as a separate file. We are producing xml and html Namespace per
  407. module summary reports (with the exclusions show in the footer). Note that the module thresholds
  408. will also be used in the reports. The reports are sorted by name with no filter applied.
  409. We are excluding test assemblies and anything in a presentation layer namespace.
  410. <code>
  411. <![CDATA[
  412. <ItemGroup>
  413. <CoverageFile Include="$(MSBuildProjectDirectory)\Test\Coverage\*.Coverage.xml" />
  414. </ItemGroup>
  415. <PropertyGroup>
  416. <CoverageExclusions>
  417. <CoverageExclusion>
  418. <ExclusionType>Class</ExclusionType>
  419. <Pattern>MyApp.SomeNamespace.SomeClass</Pattern>
  420. </CoverageExclusion>
  421. <CoverageExclusion>
  422. <ExclusionType>Namespace</ExclusionType>
  423. <Pattern>MyApp\.(\w*\.)?</Pattern>
  424. <Pattern>true</Pattern>
  425. </CoverageExclusion>
  426. </CoverageExclusions>
  427. </PropertyGroup>
  428. <NCoverExplorer ToolPath="Tools\NCoverExplorer\"
  429. ProjectName="My Project"
  430. ReportType="ModuleNamespaceSummary"
  431. Sort="Name"
  432. Filter="None"
  433. OutputDir="$(MSBuildProjectDirectory)\Test\Coverage"
  434. XmlReportName="CoverageSummary.xml"
  435. HtmlReportName="CoverageSummary.html"
  436. MergeFileName="CoverageMerge.xml"
  437. ShowExcluded="True"
  438. SatisfactoryCoverage="80"
  439. MinimumCoverage="80"
  440. FailMinimum="True"
  441. CoverageFiles="@(CoverageFile)"
  442. Exclusions="$(CoverageExclusions)"
  443. ModuleThresholds="MyProject.1.dll=75;MyProject.2.dll=85"
  444. />
  445. ]]>
  446. </code>
  447. </example>
  448. </member>
  449. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer.#ctor">
  450. <summary>
  451. Initializes a new instance of the <see cref="T:NCoverExplorer.MSBuildTasks.NCoverExplorer"/> class.
  452. </summary>
  453. </member>
  454. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer.ValidateParameters">
  455. <summary>
  456. Validate the parameters supplied to this task.
  457. </summary>
  458. <returns><c>true</c> if parameters are valid, <c>false</c> otherwise.</returns>
  459. </member>
  460. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer.Execute">
  461. <summary>
  462. Executes the task.
  463. </summary>
  464. <returns><see langword="true"/> if the task ran successfully; otherwise <see langword="false"/>.</returns>
  465. </member>
  466. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer.GenerateCommandLineCommands">
  467. <summary>
  468. Returns a string value containing the command line arguments to pass directly to the executable file.
  469. </summary>
  470. <returns>
  471. A string value containing the command line arguments to pass directly to the executable file.
  472. </returns>
  473. </member>
  474. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer.LogToolCommand(System.String)">
  475. <summary>
  476. Logs the starting point of the run to all registered loggers.
  477. </summary>
  478. <param name="message">A descriptive message to provide loggers, usually the command line and switches.</param>
  479. </member>
  480. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer.GenerateFullPathToTool">
  481. <summary>
  482. Returns the fully qualified path to the executable file.
  483. </summary>
  484. <returns>
  485. The fully qualified path to the executable file.
  486. </returns>
  487. </member>
  488. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._CheckToolPath">
  489. <summary>
  490. Determine the path to NCoverExplorer. Either the user can specify it in the arguments to the task,
  491. or we look in the registry, program files and finally just assume it is in the path.
  492. </summary>
  493. </member>
  494. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._GetConfigFilename">
  495. <summary>
  496. Return a temporary filename for the config file for executing NCoverExplorer.Console.
  497. </summary>
  498. <returns>Configuration filename.</returns>
  499. </member>
  500. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._IsLegacyNCoverExplorerConsole(System.String)">
  501. <summary>
  502. Legacy NCoverExplorer.Console is considered prior to 1.4.0 (as 1.4.0 was when the settings
  503. file format was changed).
  504. </summary>
  505. <param name="exeName">NCoverExplorer.Console.exe path.</param>
  506. <returns><c>true</c> if version is prior to 1.4.0</returns>
  507. </member>
  508. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._BuildLegacyTempConfigXmlFile(System.String)">
  509. <summary>
  510. Builds a temporary NCoverExplorer configuration file which we can pass in the command line.
  511. We require this as the command line itself does not directly support all the argument combinations.
  512. </summary>
  513. <param name="settingsFileName">Name of the settings file.</param>
  514. </member>
  515. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._BuildTempConfigXmlFile(System.String)">
  516. <summary>
  517. Builds a temporary NCoverExplorer configuration file which we can pass in the command line.
  518. We require this as the command line itself does not directly support all the argument combinations.
  519. </summary>
  520. <param name="settingsFileName">Name of the settings file.</param>
  521. </member>
  522. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._WriteCoverageExclusionsFromPairsToTempConfigFile(System.Xml.XmlTextWriter)">
  523. <summary>
  524. The coverage exclusions have been inlined as type=pattern semi-colon delimited pairs.
  525. Break apart and write to the temp config file.
  526. </summary>
  527. <param name="xmlTextWriter">Current xml output stream.</param>
  528. </member>
  529. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._WriteCoverageExclusionsFromXmlToTempConfigFile(System.Xml.XmlTextWriter)">
  530. <summary>
  531. The coverage exclusions have been inlined as type=pattern semi-colon delimited pairs.
  532. Break apart and write to the temp config file.
  533. </summary>
  534. <param name="xmlTextWriter">Current xml output stream.</param>
  535. </member>
  536. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._WriteModuleThresholdsToTempConfigFile(System.Xml.XmlTextWriter)">
  537. <summary>
  538. Iterate through the module thresholds and write their values into the configuration file.
  539. </summary>
  540. <param name="xmlTextWriter">Current xml output stream.</param>
  541. </member>
  542. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._BuildLegacyArguments(System.Text.StringBuilder)">
  543. <summary>
  544. Build command line for passing to legacy NCoverExplorer.Console versions.
  545. </summary>
  546. </member>
  547. <member name="M:NCoverExplorer.MSBuildTasks.NCoverExplorer._CleanupConfigFile">
  548. <summary>
  549. Removes generated settings file after process has run.
  550. </summary>
  551. </member>
  552. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.OutputDir">
  553. <summary>
  554. Gets or sets the output directory for the reports.
  555. </summary>
  556. <value>The output dir.</value>
  557. </member>
  558. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.FailMinimum">
  559. <summary>
  560. Whether to fail the task if the minimumCoverage threshold is not reached on any module.
  561. NCoverExplorer console application will return exit code 3.
  562. </summary>
  563. </member>
  564. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.FailCombinedMinimum">
  565. <summary>
  566. Whether to fail the task if the minimumCoverage threshold is not reached on total coverage.
  567. NCoverExplorer console application will return exit code 3.
  568. </summary>
  569. </member>
  570. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.MinimumCoverage">
  571. <summary>
  572. The minimum coverage percentage to be used with the FailMinimum and FailCombinedMinimum options.
  573. </summary>
  574. </member>
  575. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.ConfigName">
  576. <summary>
  577. Gets or sets the name of the temporary XML config file being generated for coverage.
  578. </summary>
  579. <value>The name of the XML config.</value>
  580. </member>
  581. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.SatisfactoryCoverage">
  582. <summary>
  583. The satisfactory coverage percentage for display in the reports.
  584. </summary>
  585. </member>
  586. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.ProjectName">
  587. <summary>
  588. The .config filename for containing any custom exclusions and parameters.
  589. </summary>
  590. </member>
  591. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.ReportType">
  592. <summary>
  593. The type of report to produce (use numeric value or string name).
  594. 0 / None, 1 / ModuleSummary, 3 / ModuleNamespaceSummary,
  595. 4 / ModuleClassSummary, 5 / ModuleClassFunctionSummary
  596. </summary>
  597. </member>
  598. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.Sort">
  599. <summary>
  600. The sorting if any to apply (use numeric value or string name).
  601. 0 / Name, 1 / ClassLine,
  602. 2 / CoveragePercentageAscending, 3 / CoveragePercentageDescending,
  603. 4 / UnvisitedSequencePointsAscending, 5 / UnvisitedSequencePointsDescending,
  604. 6 / VisitCountAscending, 7 / VisitCountDescending,
  605. 8 / FunctionCoverageAscending, 9 / FunctionCoverageDescending
  606. </summary>
  607. </member>
  608. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.Filter">
  609. <summary>
  610. The filtering if any to apply (use numeric value or string name).
  611. 0 / None, 1 / HideUnvisited, 2 / HideFullyCovered, 3 / HideThresholdCovered
  612. </summary>
  613. <value>The string or textual enum value.</value>
  614. </member>
  615. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.XmlReportName">
  616. <summary>
  617. The filename for generating an xml report.
  618. </summary>
  619. </member>
  620. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.HtmlReportName">
  621. <summary>
  622. The filename for generating an html report.
  623. </summary>
  624. </member>
  625. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.MergeFileName">
  626. <summary>
  627. The filename for the merge of the coverage xml files.
  628. </summary>
  629. </member>
  630. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.ShowExcluded">
  631. <summary>
  632. Determines whether to include the coverage exclusions in the report. The default is
  633. <see langword="true" />.
  634. </summary>
  635. </member>
  636. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.CoverageFiles">
  637. <summary>
  638. Used to select the coverage xml files to merge into the report.
  639. </summary>
  640. </member>
  641. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.Exclusions">
  642. <summary>
  643. Coverage exclusions to apply, in one of two formats:
  644. They can be semi-colon delimited "Type=Pattern" pairs, e.g. "Assembly=*.Tests;Class=My.*".
  645. Alternatively they can be defined in a property group as a &lt;CoverageExclusions&gt; section.
  646. See the examples for both formats. If you want to use regular expressions then you must
  647. use the &lt;PropertyGroup&gt; approach.
  648. </summary>
  649. <example>
  650. This example shows a range of coverage exclusions using the &lt;PropertyGroup&gt; approach.
  651. Note the optional use of wildcard characters in the pattern. You could set the exclusions
  652. up within the gui and then paste the xml directly from the NCoverExplorer.config file located
  653. in C:\Documents and Settings\user\Application Data\Gnoso\NCoverExplorer\
  654. <code>
  655. <![CDATA[
  656. <PropertyGroup>
  657. <CoverageExclusions>
  658. <CoverageExclusion>
  659. <ExclusionType>Assembly</ExclusionType>
  660. <Pattern>*.Tests</Pattern>
  661. </CoverageExclusion>
  662. <CoverageExclusion>
  663. <ExclusionType>Namespace</ExclusionType>
  664. <Pattern>MyNamespace.*</Pattern>
  665. </CoverageExclusion>
  666. <CoverageExclusion>
  667. <ExclusionType>Class</ExclusionType>
  668. <Pattern>MyNamespace.MyClass</Pattern>
  669. </CoverageExclusion>
  670. <CoverageExclusion>
  671. <ExclusionType>Method</ExclusionType>
  672. <Pattern>MyNamespace.MyClass.MyMethod</Pattern>
  673. </CoverageExclusion>
  674. <CoverageExclusion>
  675. <ExclusionType>Namespace</ExclusionType>
  676. <Pattern>MyApp\.(\w*\.)?</Pattern>
  677. <IsRegex>true</IsRegex>
  678. </CoverageExclusion>
  679. </CoverageExclusions>
  680. </PropertyGroup>
  681. <NCoverExplorer ...
  682. Exclusions="$(CoverageExclusions)"
  683. ...
  684. />
  685. ]]>
  686. </code>
  687. </example>
  688. <example>
  689. This example shows inlining of three of the same exclusions above. Note with this approach
  690. it is not possible to use regular expressions.
  691. <code>
  692. <![CDATA[
  693. <NCoverExplorer ...
  694. Exclusions="Assembly=*.Tests;Namespace=MyNamespace.*;Class=MyNamespace.MyClass"
  695. ...
  696. />
  697. ]]>
  698. </code>
  699. </example>
  700. </member>
  701. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.ModuleThresholds">
  702. <summary>
  703. Module thresholds to apply, in format "AssemblyName=Percentage", e.g. "MyApp.Core=75"
  704. </summary>
  705. </member>
  706. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.ToolName">
  707. <summary>
  708. Gets the name of the executable file to run.
  709. </summary>
  710. <value></value>
  711. <returns>The name of the executable file to run.</returns>
  712. </member>
  713. <member name="P:NCoverExplorer.MSBuildTasks.NCoverExplorer.StandardOutputLoggingImportance">
  714. <summary>
  715. Gets the <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors.
  716. </summary>
  717. <value></value>
  718. <returns>The <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors.</returns>
  719. </member>
  720. <member name="T:NCoverExplorer.MSBuildTasks.NCover">
  721. <summary>
  722. MSBuild task for automating NCover.Console.exe, with NCover 1.5.x support. Note that this task
  723. will self register CoverLib.dll by default using the registry (does not require local admin).
  724. </summary>
  725. <example>
  726. This example shows the standard profiling using NCover for standard nunit tests with minimal arguments.
  727. Defaults are with logging to coverage.log, profiling all assemblies, output filename of coverage.xml and this
  728. example specifies a path to where to find ncover.console.exe.
  729. <code>
  730. <![CDATA[
  731. <NCover ToolPath="Tool\NCover\"
  732. CommandLineExe="$(nunit.path)\nunit-console.exe"
  733. CommandLineArgs="$(MSBuildProjectDirectory)\myapp.tests.dll" />
  734. ]]>
  735. </code>
  736. </example>
  737. <example>
  738. If you are using TypeMock, you may experience issues with the registration of coverlib.dll conflicting
  739. due to overwriting the registered profiler. You should add the "registerProfiler" attribute below and set it to false.
  740. <code>
  741. <![CDATA[
  742. <NCover ToolPath="Tool\NCover\"
  743. CommandLineExe="$(nunit.path)\nunit-console.exe"
  744. CommandLineArgs="$(MSBuildProjectDirectory)\myapp.tests.dll"
  745. RegisterProfiler="false" />
  746. ]]>
  747. </code>
  748. </example>
  749. <example>
  750. This example for NCover 1.5.8 shows profiling a process which is launched by another process.
  751. <code>
  752. <![CDATA[
  753. <NCover ToolPath="Tool\NCover\"
  754. CommandLineExe="MyLauncher.exe"
  755. ProfiledProcessModule="LaunchedProcess.exe" />
  756. ]]>
  757. </code>
  758. </example>
  759. <example>
  760. This example shows using an assembly list as ; delimited names rather than using the ability
  761. of the NCover task to dynamically build from a list of files (shown in following example).
  762. <code>
  763. <![CDATA[
  764. <NCover ToolPath="Tool\NCover\"
  765. CommandLineExe="$(nunit.path)\nunit-console.exe"
  766. CommandLineArgs="$(MSBuildProjectDirectory)\myapp.tests.dll"
  767. AssemblyList="MyApp.Core;MyApp.Tests" />
  768. ]]>
  769. </code>
  770. </example>
  771. <example>
  772. This example shows the standard profiling using NCover 1.5.x for a Windows application, specifying a coverage
  773. exclusion, verbose logging to a named file, specifically named log and output xml files. It also shows
  774. coverage exclusion attributes, overriding the NCover location to run from and a way of listing assemblies
  775. to be included in the profiled NCover results.
  776. <code>
  777. <![CDATA[
  778. <ItemGroup>
  779. <Assembly Include="$(MSBuildProjectDirectory)\MyApp.MyCode.dll" />
  780. </ItemGroup>
  781. <NCover ToolPath="Tool\NCover\"
  782. CommandLineExe="$(nunit.path)\nunit-console.exe"
  783. CommandLineArgs="myapp.tests.dll"
  784. CoverageFile="myapp.coverage.xml"
  785. LogLevel="Verbose"
  786. LogFile="myapp.coverage.log"
  787. WorkingDirectory="$(MSBuildProjectDirectory)"
  788. ExcludeAttributes="CoverageExcludeAttribute"
  789. Assemblies="@(Assembly)" />
  790. ]]>
  791. </code>
  792. </example>
  793. </member>
  794. <member name="M:NCoverExplorer.MSBuildTasks.NCover.#ctor">
  795. <summary>
  796. Initializes a new instance of the <see cref="T:NCoverExplorer.MSBuildTasks.NCover"/> class.
  797. </summary>
  798. </member>
  799. <member name="M:NCoverExplorer.MSBuildTasks.NCover.Execute">
  800. <summary>
  801. Executes the task.
  802. </summary>
  803. <returns><see langword="true"/> if the task ran successfully; otherwise <see langword="false"/>.</returns>
  804. </member>
  805. <member name="M:NCoverExplorer.MSBuildTasks.NCover.GenerateCommandLineCommands">
  806. <summary>
  807. Returns a string value containing the command line arguments to pass directly to the executable file.
  808. </summary>
  809. <returns>
  810. A string value containing the command line arguments to pass directly to the executable file.
  811. </returns>
  812. </member>
  813. <member name="M:NCoverExplorer.MSBuildTasks.NCover.GenerateFullPathToTool">
  814. <summary>
  815. Returns the fully qualified path to the executable file.
  816. </summary>
  817. <returns>
  818. The fully qualified path to the executable file.
  819. </returns>
  820. </member>
  821. <member name="M:NCoverExplorer.MSBuildTasks.NCover.LogToolCommand(System.String)">
  822. <summary>
  823. Logs the starting point of the run to all registered loggers.
  824. </summary>
  825. <param name="message">A descriptive message to provide loggers, usually the command line and switches.</param>
  826. </member>
  827. <member name="M:NCoverExplorer.MSBuildTasks.NCover._CheckToolPath">
  828. <summary>
  829. Check that we have a valid path to NCover.
  830. </summary>
  831. </member>
  832. <member name="M:NCoverExplorer.MSBuildTasks.NCover._CleanupSettingsFile">
  833. <summary>
  834. Removes generated settings file after process has run.
  835. </summary>
  836. </member>
  837. <member name="M:NCoverExplorer.MSBuildTasks.NCover._ConvertTaskItemsToArray(Microsoft.Build.Framework.ITaskItem[])">
  838. <summary>
  839. Convert the MSBuild specific ITaskItem[] to a string array for use by NCoverUtilities.
  840. </summary>
  841. <param name="files"></param>
  842. <returns></returns>
  843. </member>
  844. <member name="P:NCoverExplorer.MSBuildTasks.NCover.CommandLineExe">
  845. <summary>
  846. The command line executable to be launched by NCover (such as nunit-console.exe).
  847. </summary>
  848. </member>
  849. <member name="P:NCoverExplorer.MSBuildTasks.NCover.CommandLineArgs">
  850. <summary>
  851. The arguments to pass to the command line executable to be launched by NCover (such as nunit-console.exe).
  852. </summary>
  853. </member>
  854. <member name="P:NCoverExplorer.MSBuildTasks.NCover.CoverageFile">
  855. <summary>
  856. The filename for the output coverage.xml file (default).
  857. </summary>
  858. </member>
  859. <member name="P:NCoverExplorer.MSBuildTasks.NCover.LogLevel">
  860. <summary>
  861. What level of NCover logging to provide. Values are "Normal" (default) and "Verbose".
  862. Due to a bug in NCover 1.5.4 "Quiet" will result in NCover stopping abnormally - hence has been
  863. defaulted to be "Normal" until the bug is fixed.
  864. </summary>
  865. </member>
  866. <member name="P:NCoverExplorer.MSBuildTasks.NCover.LogFile">
  867. <summary>
  868. Gets or sets the logfile name to write to if logLevel is set to anything other than "Quiet". The default
  869. is "coverage.log".
  870. </summary>
  871. </member>
  872. <member name="P:NCoverExplorer.MSBuildTasks.NCover.WorkingDirectory">
  873. <summary>
  874. Gets or sets the working directory for the command line executable.
  875. </summary>
  876. </member>
  877. <member name="P:NCoverExplorer.MSBuildTasks.NCover.ExcludeAttributes">
  878. <summary>
  879. If coverage exclusion attributes have been applied (NCover 1.5.4 onwards) specify the full namespace
  880. to the attribute including the "Attribute" suffix - e.g. "CoverageExcludeAttribute" if defined in no
  881. namespace. Separate multiple attributes with semi-colons.
  882. </summary>
  883. </member>
  884. <member name="P:NCoverExplorer.MSBuildTasks.NCover.ProfileIIS">
  885. <summary>
  886. Determines whether to profile under IIS. Default value is <see langword="false" />.
  887. </summary>
  888. </member>
  889. <member name="P:NCoverExplorer.MSBuildTasks.NCover.ProfileService">
  890. <summary>
  891. The service name if profiling a windows service.
  892. </summary>
  893. </member>
  894. <member name="P:NCoverExplorer.MSBuildTasks.NCover.AssemblyList">
  895. <summary>
  896. Alternative to specifying assembly names - you can instead list them as you would on the
  897. command line as a semi-colon delimited list without any suffixes or paths.
  898. </summary>
  899. </member>
  900. <member name="P:NCoverExplorer.MSBuildTasks.NCover.Assemblies">
  901. <summary>
  902. Used to specify the assemblies to be profiled. Alternative to the AssemblyList property,
  903. where instead you wat the list to be dynamically built using an itemgroup, for instance
  904. to match all assemblies against a wildcard. The NCover task will take care of stripping
  905. off the suffixes etc.
  906. </summary>
  907. </member>
  908. <member name="P:NCoverExplorer.MSBuildTasks.NCover.RegisterProfiler">
  909. <summary>
  910. Determines whether to register NCover CoverLib.dll on each run. The default is <c>true</c>. You
  911. would set this to <c>false</c> if using TypeMock due to a conflict in registered profilers.
  912. If set to true, the NCover task uses a reference counting approach to minimise the chance
  913. of issues when simultaneous builds.
  914. </summary>
  915. </member>
  916. <member name="P:NCoverExplorer.MSBuildTasks.NCover.XmlFormat">
  917. <summary>
  918. Gets or sets a value indicating the xml output format to write (new in NCover 1.5.7).
  919. Default value is "Xml1", alternat option is "Xml2" which nests method nodes within class
  920. nodes. Note however that "Xml2" is for future use and is not yet supported by NCoverExplorer
  921. as of version 1.3.6.
  922. </summary>
  923. </member>
  924. <member name="P:NCoverExplorer.MSBuildTasks.NCover.ProfiledProcessModule">
  925. <summary>
  926. Gets or sets the profiled process module name. Use this argument when the executable being
  927. launched is not the actual process you want to profile coverage for.
  928. </summary>
  929. </member>
  930. <member name="P:NCoverExplorer.MSBuildTasks.NCover.ToolName">
  931. <summary>
  932. Gets the name of the executable file to run.
  933. </summary>
  934. <value></value>
  935. <returns>The name of the executable file to run.</returns>
  936. </member>
  937. <member name="P:NCoverExplorer.MSBuildTasks.NCover.StandardOutputLoggingImportance">
  938. <summary>
  939. Gets the <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors.
  940. </summary>
  941. <value></value>
  942. <returns>The <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors.</returns>
  943. </member>
  944. <member name="T:NCoverExplorer.MSBuildTasks.NUnitProject">
  945. <summary>
  946. Create a .nunit project file for all the test assemblies matching the specified pattern.
  947. This should be created in the bin folder where your test assemblies are located so that
  948. the assemblies are within the AppDomain path.
  949. The .nunit file can then be used by NUnit or NCover based tasks.
  950. </summary>
  951. <example>
  952. <para>
  953. Create a .nunit project file in output bin folder for a specified test assembly.
  954. </para>
  955. <code>
  956. <![CDATA[
  957. <UsingTask TaskName="NCoverExplorer.MSBuildTasks.NUnitProject"
  958. AssemblyFile="NCoverExplorer.MSBuildTasks.dll"/>
  959. <PropertyGroup>
  960. <OutputPath>$(MSBuildProjectDirectory)\Build</OutputPath>
  961. </PropertyGroup>
  962. <ItemGroup>
  963. <Assembly Include="$(OutputPath)\MyApp.Tests.dll" />
  964. </ItemGroup>
  965. <NUnitProject Project="$(OutputPath)\MyApp.nunit"
  966. Assemblies="@(Assembly)" />
  967. ]]>
  968. </code>
  969. </example>
  970. <example>
  971. <para>
  972. Create a .nunit project file in output bin folder with an associated App.Config file for
  973. all test assemblies matching a pattern.
  974. </para>
  975. <code>
  976. <![CDATA[
  977. <ItemGroup>
  978. <Assembly Include="$(OutputPath)\MyApp.*.Tests.dll" />
  979. </ItemGroup>
  980. <NUnitProject Project="$(OutputPath)\MyApp.nunit"
  981. AppConfig="$(OutputPath)\MyApp.exe.config"
  982. Assemblies="@(Assembly)" />
  983. ]]>
  984. </code>
  985. </example>
  986. </member>
  987. <member name="M:NCoverExplorer.MSBuildTasks.NUnitProject.#ctor">
  988. <summary>
  989. Default constructor.
  990. </summary>
  991. </member>
  992. <member name="M:NCoverExplorer.MSBuildTasks.NUnitProject.Execute">
  993. <summary>
  994. Build the contents of the .nunit file using the test assemblies matching this pattern.
  995. </summary>
  996. </member>
  997. <member name="M:NCoverExplorer.MSBuildTasks.NUnitProject._CreateNUnitProjectFile(System.String,Microsoft.Build.Framework.ITaskItem[],System.String,System.String)">
  998. <summary>
  999. Create a .nunit project file listing the test assemblies.
  1000. </summary>
  1001. <param name="nunitProjectFileName">Full filename of the .nunit file.</param>
  1002. <param name="testFileSet">Fileset containing the test assemblies.</param>
  1003. <param name="appConfig">Optional path to App.Config file to include in project.</param>
  1004. <param name="appBase">Optional path to the nunit app base, when included full paths to each assembly (relative to the appbase) are included</param>
  1005. </member>
  1006. <member name="P:NCoverExplorer.MSBuildTasks.NUnitProject.Project">
  1007. <summary>
  1008. The nunit project file to create.
  1009. </summary>
  1010. </member>
  1011. <member name="P:NCoverExplorer.MSBuildTasks.NUnitProject.AppConfig">
  1012. <summary>
  1013. Optional path to an App.Config file to be specified in the .nunit project file.
  1014. </summary>
  1015. </member>
  1016. <member name="P:NCoverExplorer.MSBuildTasks.NUnitProject.AppBase">
  1017. <summary>
  1018. Optional path to the nunit app base, when included full paths to each assembly
  1019. (relative to the appbase) are included.
  1020. </summary>
  1021. </member>
  1022. <member name="P:NCoverExplorer.MSBuildTasks.NUnitProject.Assemblies">
  1023. <summary>
  1024. Used to select the test assemblies to be included in the .nunit project.
  1025. </summary>
  1026. </member>
  1027. <member name="T:NCoverExplorer.MSBuildTasks.Properties.Resources">
  1028. <summary>
  1029. A strongly-typed resource class, for looking up localized strings, etc.
  1030. </summary>
  1031. </member>
  1032. <member name="P:NCoverExplorer.MSBuildTasks.Properties.Resources.ResourceManager">
  1033. <summary>
  1034. Returns the cached ResourceManager instance used by this class.
  1035. </summary>
  1036. </member>
  1037. <member name="P:NCoverExplorer.MSBuildTasks.Properties.Resources.Culture">
  1038. <summary>
  1039. Overrides the current thread's CurrentUICulture property for all
  1040. resource lookups using this strongly typed resource class.
  1041. </summary>
  1042. </member>
  1043. <member name="P:NCoverExplorer.MSBuildTasks.Properties.Resources.NCoverConfigContent">
  1044. <summary>
  1045. Looks up a localized string similar to Contents of config file:\r\n{0}.
  1046. </summary>
  1047. </member>
  1048. <member name="P:NCoverExplorer.MSBuildTasks.Properties.Resources.NCoverExplorerConfigContent">
  1049. <summary>
  1050. Looks up a localized string similar to Contents of config file:\r\n{0}.
  1051. </summary>
  1052. </member>
  1053. <member name="P:NCoverExplorer.MSBuildTasks.Properties.Resources.NCoverExplorerDeletingConfig">
  1054. <summary>
  1055. Looks up a localized string similar to Deleting config file: {0}.
  1056. </summary>
  1057. </member>
  1058. <member name="P:NCoverExplorer.MSBuildTasks.Properties.Resources.NCoverExplorerInvalidExclusion">
  1059. <summary>
  1060. Looks up a localized string similar to This line cannot be parsed: &apos;{0}&apos;. Coverage exclusions should be in format: Type=Pattern (e.g. &apos;Assembly=*.Tests&apos;).
  1061. </summary>
  1062. </member>
  1063. <member name="P:NCoverExplorer.MSBuildTasks.Properties.Resources.NCoverExplorerNotFound">
  1064. <summary>
  1065. Looks up a localized string similar to Could not find the registry key for NCoverExplorer indicating the program location (set by installing with TestDriven.Net). Please specify the full path to NCoverExplorer.Console.exe using the ToolPath attribute..
  1066. </summary>
  1067. </member>
  1068. <member name="P:NCoverExplorer.MSBuildTasks.Properties.Resources.NCoverNotFound">
  1069. <summary>
  1070. Looks up a localized string similar to Could not find NCover.Console.exe in C:\Program Files\NCover\. Specify an alternate path using the ToolPath attribute on your NCover target..
  1071. </summary>
  1072. </member>
  1073. <member name="P:NCoverExplorer.MSBuildTasks.Properties.Resources.NCoverVersionFound">
  1074. <summary>
  1075. Looks up a localized string similar to Detected NCover.Console v{0} in {1}.
  1076. </summary>
  1077. </member>
  1078. </members>
  1079. </doc>