Docs · API reference · Motus.Abstractions

TestSuiteInfo Class#

Metadata for a test suite run, passed to the reporter when a run begins.

public sealed record TestSuiteInfo : System.IEquatable<Motus.Abstractions.TestSuiteInfo>

Inheritance System.Object → TestSuiteInfo

Implements System.IEquatable<TestSuiteInfo>

Constructors#

TestSuiteInfo(string, int, IReadOnlyList<string>, Nullable<int>, Nullable<int>) Constructor#

Metadata for a test suite run, passed to the reporter when a run begins.

public TestSuiteInfo(string SuiteName, int TestCount, System.Collections.Generic.IReadOnlyList<string>? Tags=null, System.Nullable<int> ShardIndex=null, System.Nullable<int> ShardTotal=null);

Parameters#

SuiteName System.String

The name of the test suite.

TestCount System.Int32

The total number of tests in the suite.

Tags System.Collections.Generic.IReadOnlyList<System.String>

Optional tags or labels associated with the suite.

ShardIndex System.Nullable<System.Int32>

The 1-based shard index when this run is one shard of a larger suite; null for a whole-suite run.

ShardTotal System.Nullable<System.Int32>

The total number of shards when sharding; null for a whole-suite run.

Properties#

ShardIndex Property#

The 1-based shard index when this run is one shard of a larger suite; null for a whole-suite run.

public System.Nullable<int> ShardIndex { get; init; }

Property Value#

System.Nullable<System.Int32>

ShardTotal Property#

The total number of shards when sharding; null for a whole-suite run.

public System.Nullable<int> ShardTotal { get; init; }

Property Value#

System.Nullable<System.Int32>

SuiteName Property#

The name of the test suite.

public string SuiteName { get; init; }

Property Value#

System.String

Tags Property#

Optional tags or labels associated with the suite.

public System.Collections.Generic.IReadOnlyList<string>? Tags { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<System.String>

TestCount Property#

The total number of tests in the suite.

public int TestCount { get; init; }

Property Value#

System.Int32