Metadata class

Metadata for a test or test suite.

This metadata comes from declarations on the test itself; it doesn't include configuration from the user.


Metadata({PlatformSelector testOn, Timeout timeout, bool skip, bool verboseTrace, bool chainStackTraces, int retry, String skipReason, Iterable<String> tags, Map<PlatformSelector, Metadata> onPlatform, Map<BooleanSelector, Metadata> forTag})
Creates new Metadata. [...]
Metadata.deserialize(dynamic serialized)
Deserializes the result of Metadata.serialize into a new Metadata.
Metadata.parse({String testOn, Timeout timeout, dynamic skip, bool verboseTrace, bool chainStackTraces, int retry, Map<String, dynamic> onPlatform, dynamic tags})
Creates a new Metadata, but with fields parsed from caller-friendly values where applicable. [...]


chainStackTraces bool
Whether to chain stack traces.
forTag Map<BooleanSelector, Metadata>
Metadata that applies only when specific tags are applied. [...]
onPlatform Map<PlatformSelector, Metadata>
Platform-specific metadata. [...]
retry int
The number of times to re-run a test before being marked as a failure.
skip bool
Whether the test or suite should be skipped.
skipReason String
The reason the test or suite should be skipped, if given.
tags Set<String>
The user-defined tags attached to the test or suite.
testOn PlatformSelector
The selector indicating which platforms the suite supports.
timeout Timeout
The modification to the timeout for the test or suite.
verboseTrace bool
Whether to use verbose stack traces.
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


change({PlatformSelector testOn, Timeout timeout, bool skip, bool verboseTrace, bool chainStackTraces, int retry, String skipReason, Map<PlatformSelector, Metadata> onPlatform, Set<String> tags, Map<BooleanSelector, Metadata> forTag}) Metadata
Returns a copy of this with the given fields changed.
forPlatform(SuitePlatform platform) Metadata
Returns a copy of this with all platform-specific metadata from onPlatform resolved.
merge(Metadata other) Metadata
Return a new Metadata that merges this with other. [...]
serialize() Map<String, dynamic>
Serializes this into a JSON-safe object that can be deserialized using Metadata.deserialize.
validatePlatformSelectors(Set<String> validVariables) → void
Throws a FormatException if any PlatformSelectors use any variables that don't appear either in validVariables or in the set of variables that are known to be valid for all selectors.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


operator ==(dynamic other) bool
The equality operator. [...]

Static Properties

empty Metadata
Empty metadata with only default values. [...]