AttemptRuntimeScope class final
Owns the process-wide runtime hooks installed for one test attempt.
Both the standalone and application-owned entry points execute in the same Flutter isolate. Keeping installation and restoration here makes an attempt boundary explicit and prevents a failed attempt from leaking its error handler, async runner, or console capture into the next retry.
Constructors
- AttemptRuntimeScope({required EnsembleTestContext context, required WidgetTester tester, String formatFlutterError(FlutterErrorDetails details) = _defaultFlutterError, VoidCallback captureDebugPrint()?})
Properties
-
closeFailures
→ List<
({Object error, StackTrace stackTrace})> -
Every failure encountered while restoring process-wide runtime hooks.
no setter
- context → EnsembleTestContext
-
final
- formatFlutterError → String Function(FlutterErrorDetails details)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tester → WidgetTester
-
final
Methods
-
close(
) → void - Restores the hooks that were active before open.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → void - Installs attempt-local hooks. Calling this twice is an error.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited