Skip to content

Test‐VSTest

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

Synopsis

Extends Test-VSTest task to generate a dotCover snapshot.


Dependencies

  • Visual Studio Locator
    Locate Visual Studio installations
  • 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