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

DotnetTestStep

open class DotnetTestStep : BuildStep

A dotnet test step to run .NET CLI command

See Also

dotnetTest

Types

Coverage

sealed class Coverage : CompoundParam<Coverage>

ImagePlatform

enum class ImagePlatform

Docker image platforms

Verbosity

enum class Verbosity

Logging verbosity

Constructors

<init>

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

A dotnet test step to run .NET CLI command

Properties

args

var args: String?

Enter additional command line parameters for dotnet test.

configuration

var configuration: String?

Target configuration to test for.

coverage

var coverage: Coverage?

Specifies coverage tool to use

dockerImage

var dockerImage: String?

Specifies which Docker image to use for running this build step. I.e. the build step will be run inside specified docker image, using 'docker run' wrapper.

dockerImagePlatform

var dockerImagePlatform: ImagePlatform?

Specifies which Docker image platform will be used to run this build step.

dockerPull

var dockerPull: Boolean?

If enabled, "docker pull image" will be run before docker run.

dockerRunParameters

var dockerRunParameters: String?

Additional docker run command arguments

filter

var filter: String?

Specify the test case filter.

framework

var framework: String?

Target framework to test for.

logging

var logging: Verbosity?

Specify logging verbosity

outputDir

var outputDir: String?

The directory where to find the binaries to be run.

projects

var projects: String?

Specify paths to projects and solutions. Wildcards are supported.

settingsFile

var settingsFile: String?

Run tests that match the given expression.

skipBuild

var skipBuild: Boolean?

Do not build the project before testing

workingDir

var workingDir: String?

Build working directory for script, specify it if it is different from the checkout * directory.

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

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