jetbrains.buildServer.configs.kotlin.v2018_2.buildSteps / MSTestStep

MSTestStep

open class MSTestStep : BuildStep

A build step running MSTest tests

See Also

mstest

Types

Coverage

sealed class Coverage : CompoundParam<Coverage>

PlatformBitness

enum class PlatformBitness

PlatformVersion

enum class PlatformVersion

Registration

enum class Registration

ReportOrder

enum class ReportOrder

ReportType

enum class ReportType

Constructors

<init>

MSTestStep(init: MSTestStep.() -> Unit)MSTestStep()

A build step running MSTest tests

Properties

args

var args: String?

Additional parameters to add to the command line for MSTest

coverage

var coverage: Coverage?

Specifies coverage tool to use

excludeTestFileNames

var excludeTestFileNames: String?

Newline-separated list of assemblies to be excluded from test run. Wildcards are supported.

includeTestFileNames

var includeTestFileNames: String?

Newline-separated list of assemblies to be included in test run. Wildcards are supported.

metadata

var metadata: String?

A value for the /testmetadata: argument

mstestPath

var mstestPath: String?

A path to test engine. TeamCity detects test engine installation on the agent, to run the detected engine use the following paths:

mstest_testlist

var mstest_testlist: String?

Newline-separated list of testlist names from metadata to run. Every line will be translated into the /testlist: argument.

resultsFile

var resultsFile: String?

A value for the /resultsfile: command line argument

runIfUniqueMatchFound

var runIfUniqueMatchFound: Boolean?

When set to true, TeamCity will run the test only if a unique match is found for any specified test name in the testsToRun property

runSettings

var runSettings: String?

A path to run settings configuration file

testsToRun

var testsToRun: String?

Newline-separated list of individual tests to run. Each test nae will be translated into the /test: argument.

Inherited Properties

conditions

var conditions: BuildStepConditions

Optional collection of build step execution conditions

enabled

var enabled: Boolean

Specifies whether the step is enabled, true by default

executionMode

var executionMode: ExecutionMode

Build step execution mode

id

var id: String?

Id of the step, if not specified will be generated

name

var name: String

Build step name

type

var type: String

Build step type

Functions

dotcover

fun dotcover(init: Dotcover.() -> Unit = {}): Dotcover

ncover

fun ncover(init: Ncover.() -> Unit = {}): Ncover

ncover3

fun ncover3(init: Ncover3.() -> Unit = {}): Ncover3

partcover

fun partcover(init: Partcover.() -> Unit = {}): Partcover

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

clearConditions

fun clearConditions(): Unit

Deletes all configured build step conditions

conditions

fun conditions(init: BuildStepConditions.() -> Unit = {}): Unit

Configures build step conditions

create

open fun create(): BuildStep

Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.

toString

open fun toString(): String