Skip to content

Targets and parameters

Vitaliy K edited this page Dec 15, 2016 · 2 revisions

Parameters

  • IsDesktopBuild=true - indicates the desktop build. Desktop builds generate human-readable reports (e.g. code coverage); no integration like coverage statistics update will be executed as part of desktop build.

Code Coverage

  • OpenCoverExcludeByAttribute=System.ObsoleteAttribute;System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute - exclude code decorated with given attributes from code coverage;
  • OpenCoverShowUnvisited=false - Output unvisited methods to console
  • OpenCoverFilter= - list of filters, mapped to filter command-line parameter. See https://github.com/opencover/opencover/wiki/Usage#understanding-filters for details.

Unit tests

UseNUnit3

Switches between NUnit2 and NUnit3.

  • Value: true/false
  • Default: false - NUnit 2 will be used.

NUnit3TestsFilter

Allows select tests to be executed using --where expression.See https://github.com/nunit/docs/wiki/Test-Selection-Language. Value: string.

Targets

  • RunNUnitTests - runs unit tests and code coverage. In desktop build Html report will be generated in Drops/TestResults/CoverageReport folder.
Clone this wiki locally