Skip to content

TestFilterContext

Namespace: E2E

public sealed class TestFilterContext

What the host hands a filter besides its tests (upstream’s TestFilterContext).

Inheritance: object

View source

public required TestFilterChanges Changes { get; init; }

The change the filter judges; the same for every filter of the run.

Value: TestFilterChanges

View source

public string? ConfigFile { get; init; }

The config file this run loaded, whatever its name, as a POSIX path relative to Changes.Root like Changes.Files, in its on-disk bytes (compare in NFC, as with a test’s File); null when the run was given a config object or loaded one outside the repository.

Value: string

View source

public required Action<string> Log { get; init; }

Prints one progress line as a run notice.

Value: Action<string>

View source

public required string ProjectRoot { get; init; }

Absolute project root, spelled as on disk like Changes.Root: symlinks resolved, names in on-disk case; a test’s File is relative to it.

Value: string

View source

public required Func<string, string> Redact { get; init; }

Replaces every fixed-value secret and credential password in the text, and any run of 8 or more consecutive characters of one.

Value: Func<string, string>

View source

public required CancellationToken Signal { get; init; }

Cancelled when the run is interrupted, or after 5 minutes; hand it to every model and network call.

Value: CancellationToken

View source