TestFilterContext
Namespace: E2E
public sealed class TestFilterContextWhat the host hands a filter besides its tests (upstream’s TestFilterContext).
Inheritance: object
Properties
Section titled “Properties”Changes
Section titled “Changes”public required TestFilterChanges Changes { get; init; }The change the filter judges; the same for every filter of the run.
Value: TestFilterChanges
ConfigFile
Section titled “ConfigFile”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
public required Action<string> Log { get; init; }Prints one progress line as a run notice.
Value: Action<string>
ProjectRoot
Section titled “ProjectRoot”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
Redact
Section titled “Redact”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>
Signal
Section titled “Signal”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