Skip to content

Test‐MSpec

Luca Sgroi edited this page May 18, 2017 · 11 revisions

Synopsis

Extends Test-MSpec task to generate a dotCover snapshot.


Dependencies

  • Machine.Specifications.Runner.Console
    Console runner for the Context/Specification framework Machine.Specifications
  • JetBrains dotCover Command Line Tools
    .NET unit test runner and code coverage tool

Properties

  • dotCoverFilters - specifies coverage filters using the following syntax +:module=*;class=*;function=* which can be optionally new line separated; use -:myassembly to exclude an assembly from code coverage; asterisk wildcard * is supported
    Optional
  • dotCoverAttributeFilters - specifies attribute filters using the following syntax filter1;filter2 which can be optionally new line separated; asterisk wildcard * is supported
    Optional
  • EnableCodeCoverage - allows to eventually disable dotCover; set this property in the Properties.ps1 or before importing the task or as value of session/environment variable
    Default to $true
Clone this wiki locally