PatrolCI class
Constructors
PatrolCI (String _resolveDirectory (String ? dir ), {@visibleForTesting PatrolProcessRunner processRunner = runPatrolProcess })
const
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareApk ({String ? dir , List <String > targets = const [] , bool stopGradleDaemon = true })
→ Future <void >
Builds the Android debug app and test APKs with a Patrol test manifest.
Stops Gradle after a successful build to free memory for the emulator.
Set stopGradleDaemon to false to reuse the daemon for later builds.
test ({required String device , String ? dir , List <String > targets = const [] , List <Secret > env = const [] , bool verbose = false , List <String > additionalArguments = const [] })
→ Future <void >
testWithoutBuilding ({required String device , String ? dir })
→ Future <void >
Runs the debug tests built by prepareApk on device.
Use the same project directory for both steps.
testWithVirtualBle ({String ? dir , required String target , required String bundleId , required String serviceUuid , required String characteristicUuid , String ? resultJsonFile , String pythonExecutable = 'python3.13' })
→ Future <Directory >
Builds one Debug iOS app, then runs target on two fresh simulators.
toString ()
→ String
A string representation of this object.
inherited