BddExample class
Represents a Gherkin Examples block which turns a Scenario into a Scenario Outline and provides one or more rows of example values.
- Inheritance
- Mixed-in types
- Available extensions
Constructors
-
BddExample(BddFramework bdd, List<
val> values) - Creates a BddExample block with its first example row.
Properties
- bdd → BddFramework
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNote → bool
-
Whether this term is a note, added with
.note(). Notes are exported as Gherkin comments, not as steps.no setterinherited -
rows
→ List<
Set< val> > -
The example rows associated with this
Examplesblock.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
finalinherited
- variation → _Variation
-
finalinherited
Methods
-
appendExampleValues(
List< val> values) → BddExample -
Appends one more example row to this
Examplesblock. -
example(
val v1, [val? v2, val? v3, val? v4, val? v5, val? v6, val? v7, val? v8, val? v9, val? v10, val? v11, val? v12, val? v13, val? v14, val? v15]) → BddExample -
Adds a single example row to the current BDD and returns the shared
BddExample block for continued chaining.
inherited
-
formatExampleTable(
BddConfig config) → String -
Formats the example rows as a Gherkin table using the provided
config. -
keyword(
BddConfig config) → String -
The keyword rendered for this block, usually
Examples:.override -
keywordPrefix(
BddConfig config) → String -
The configured prefix rendered before the
Exampleskeyword.override -
keywordSuffix(
BddConfig config) → String -
The configured suffix rendered after the
Exampleskeyword.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prefix(
BddConfig config) → String -
The configured content prefix for the
Examplesblock.override -
run(
[CodeRun? testCallback]) → void -
Available on BddRunnable, provided by the DartTestRun extension
Executes the BDD scenario as a standard Dart unit test. -
run(
[CodeRun? testCallback]) → void -
Available on BddRunnable, provided by the FlutterTestRun extension
Executes the BDD scenario as a Flutter unit test (without a widget tester). -
run(
[WidgetTestCallback? testCallback]) → void -
Available on BddRunnable, provided by the FlutterWidgetTestRun extension
Executes the BDD scenario as a Flutter widget test. -
spaces(
BddConfig config) → String -
The indentation used for the
Examplesblock.override -
suffix(
BddConfig config) → String -
The configured content suffix for the
Examplesblock.override -
testRun(
CodeRun code, BddReporter reporter) → BddFramework -
Runs the owning BDD in test mode with the given
reporter. -
toString(
[BddConfig config = BddConfig._default]) → String -
Renders the full
Examplesblock as Gherkin text.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited