SuiteConfiguration class final

Suite-level configuration.

This tracks configuration that can differ from suite to suite.

Constructors

SuiteConfiguration({required bool? allowDuplicateTestNames, required bool? allowTestRandomization, required bool? jsTrace, required bool? runSkipped, required Iterable<String>? dart2jsArgs, required String? precompiledPath, required Iterable<CompilerSelection>? compilerSelections, required Iterable<RuntimeSelection>? runtimes, required Map<BooleanSelector, SuiteConfiguration>? tags, required Map<PlatformSelector, SuiteConfiguration>? onPlatform, required bool? ignoreTimeouts, required Timeout? suiteLoadTimeout, required Timeout? timeout, required bool? verboseTrace, required bool? chainStackTraces, required bool? skip, required int? retry, required String? skipReason, required PlatformSelector? testOn, required Iterable<String>? addTags})
factory
SuiteConfiguration.fromMetadata(Metadata metadata)
Creates a new SuiteConfiguration that takes its configuration from metadata.
factory
SuiteConfiguration.runSkipped(bool runSkipped)
A specialized constructor for only configuring runSkipped.
factory
SuiteConfiguration.runtimes(Iterable<RuntimeSelection> runtimes)
A specialized constructor for only configuring the runtimes.
factory
SuiteConfiguration.timeout(Timeout timeout)
A specialized constructor for only configuring the timeout.
factory

Properties

allowDuplicateTestNames → bool
Whether or not duplicate test (or group) names are allowed within the same test suite.
no setter
allowTestRandomization → bool
Whether test randomization should be allowed for this test.
no setter
compilerSelections → List<CompilerSelection>?
The set of compiler selections for running tests.
final
dart2jsArgs → List<String>
Additional arguments to pass to dart2js.
final
hashCode → int
The hash code for this object.
no setterinherited
ignoreTimeouts → bool
no setter
jsTrace → bool
Whether JavaScript stack traces should be left as-is or converted to Dart-like traces.
no setter
knownTags → Set<String>
The set of tags that have been declared in any way in this configuration.
latefinal
metadata → Metadata
The global test metadata derived from this configuration.
no setter
onPlatform → Map<PlatformSelector, SuiteConfiguration>
Configuration for particular platforms.
final
precompiledPath → String?
The path to a mirror of this package containing HTML that points to precompiled JS.
final
runSkipped → bool
Whether skipped tests should be run.
no setter
runtimes → List<String>
The set of runtimes on which to run tests.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
suiteLoadTimeout → Timeout
no setter
tags → Map<BooleanSelector, SuiteConfiguration>
Configuration for particular tags.
final
testSelections → Set<TestSelection>
The selections for which tests to run in a suite.
final

Methods

change({bool? allowDuplicateTestNames, bool? allowTestRandomization, bool? jsTrace, bool? runSkipped, Iterable<String>? dart2jsArgs, String? precompiledPath, Iterable<CompilerSelection>? compilerSelections, Iterable<RuntimeSelection>? runtimes, Map<BooleanSelector, SuiteConfiguration>? tags, Map<PlatformSelector, SuiteConfiguration>? onPlatform, bool? ignoreTimeouts, Timeout? suiteLoadTimeout, Timeout? timeout, bool? verboseTrace, bool? chainStackTraces, bool? skip, int? retry, String? skipReason, PlatformSelector? testOn, Iterable<String>? addTags}) → SuiteConfiguration
Returns a copy of this configuration with the given fields updated.
forPlatform(SuitePlatform platform) → SuiteConfiguration
Returns a copy of this with all platform-specific configuration from onPlatform resolved.
merge(SuiteConfiguration other) → SuiteConfiguration
Merges this with other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectTests(Set<TestSelection> testSelections) → SuiteConfiguration
Assign the selection of tests that should run for this suite.
toString() → String
A string representation of this object.
inherited
validateRuntimes(List<Runtime> allRuntimes) → void
Throws a FormatException if this refers to any undefined runtimes.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

empty → SuiteConfiguration
Empty configuration with only default values.
final