EnsembleTestParser class

Parses test cases and suite configuration from test documents.

The parser is useful for tooling that wants to validate or inspect test definitions without starting Flutter. Runtime execution is provided by runEnsembleTests.

Constructors

EnsembleTestParser()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

parseConfigString(String content, {String? sourcePath}) → EnsembleTestConfig
Parses one suite tests/config.yaml document from content.
parseDecodedDocument(dynamic doc, {String? sourcePath, Map<String, dynamic> inputs = const {}, Map<String, dynamic> scenario = const {}, String? scenarioId, List<TestScenario>? parsedScenarios}) → EnsembleTestCase
Parses a previously decoded document, validating its root before use. This lets selection and expansion share the same decoded tree even when service substitution changes the source text.
parseDocument(YamlMap doc, {String? sourcePath, Map<String, dynamic> inputs = const {}, Map<String, dynamic> scenario = const {}, String? scenarioId, List<TestScenario>? parsedScenarios}) → EnsembleTestCase
Parses an already decoded YAML document. Suite planning uses this to reuse the document decoded for metadata-based selection.
parseFile(String path, {Map<String, dynamic> inputs = const {}, Map<String, dynamic> scenario = const {}, String? scenarioId}) → Future<EnsembleTestCase>
Loads a test file from disk.
parseMocksNode(dynamic node, {required String testId, required Map<String, dynamic> inputs, required Map<String, dynamic> scenario, String? scenarioId}) → ({List<String> files, Map<String, dynamic> inline})
parseString(String content, {String? sourcePath, Map<String, dynamic> inputs = const {}, Map<String, dynamic> scenario = const {}, String? scenarioId}) → EnsembleTestCase
Parses one *.test.yaml document from content.