BddRunner class
Orchestrates the execution of BDD tests by connecting BDD scenarios to the underlying test framework via an injected TestDelegate.
Constructors
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
-
run(
BddFramework bdd, CodeRun code, TestDelegate testDelegate, void errorHandler(Object error, StackTrace stackTrace)?, [bool rethrowAfterHandling()?]) → void -
Runs a BDD test by gathering its steps and executing them via the provided
testFn. -
subscript(
int index) → String - Converts an integer into a subscript string (e.g., 1 -> ₁). Used for numbering multiple example runs.
-
testCountStr(
int testCount, int? exampleNumber) → String - Generates a string representing the test iteration, potentially with a subscript for examples. For example: "4" (no examples) or "4₁" (first example of test 4).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- blue → const String
- bold → const String
- boldItalic → const String
- boldItalicOff → const String
- boldOff → const String
- config → const BddConfig
- Default configuration used for the ANSI-colored console output during execution.
- grey → const String
- italic → const String
- italicOff → const String
- red → const String
- reset → const String
- yellow → const String