Table of Contents

Class BunTest

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Runs Bun's test runner.

public sealed record BunTest : ExecToolCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<BunTest>

Inheritance

Implements

Properties

Bail

Exits after this many failures.

public int? Bail { get; init; }

Property Value

int?

CommandParts

Gets every canonically ordered rendered command fragment.

protected override IReadOnlyList<string?> CommandParts { get; }

Property Value

IReadOnlyList<string?>

Coverage

Generates a coverage profile.

public bool Coverage { get; init; }

Property Value

bool

PassWithNoTests

Exits successfully when no tests are found.

public bool PassWithNoTests { get; init; }

Property Value

bool

Patterns

File-name patterns selecting tests.

public IReadOnlyList<string> Patterns { get; init; }

Property Value

IReadOnlyList<string>

TestNamePattern

Runs only test names matching this expression.

public string? TestNamePattern { get; init; }

Property Value

string?

Timeout

Per-test timeout in milliseconds.

public int? Timeout { get; init; }

Property Value

int?

Todo

Includes todo tests.

public bool Todo { get; init; }

Property Value

bool

UpdateSnapshots

Updates snapshots.

public bool UpdateSnapshots { get; init; }

Property Value

bool