TestAppPatcher class

Temporarily wires appDir to run declarative tests, then restores files.

Constructors

TestAppPatcher(String appDir, {String? testsDirRelative, String? testEntryRelativePath})

Properties

activeEntryRelativePath → String
Path passed to flutter test. Host widget entries in integration mode run from a generated file under integration_test/ so Flutter wires the native plugin.
no setter
appDir → String
final
configuredEntryRelativePath → String
User-owned or generated entry on disk. Never the temporary integration adapter written beside a widget-mode host file.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasTestsOnDisk → bool
no setter
pubspecChanged → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
testsDirPath → String?
no setter
testsDirRelative → String?
no setter
usesApplicationEntry → bool
no setter

Methods

enable({ExecutionMode mode = ExecutionMode.widget, String? targetPlatform, bool fixIosDeploymentTarget = false}) → void
Temporarily wires the app for declarative tests.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restore() → void
Restores every file touched by a successful enable.
toString() → String
A string representation of this object.
inherited

Operators

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