runApplicationTests function
Future<void>
runApplicationTests({
- required ApplicationTestDriver driver,
- String? testsAssetPrefix,
Registers and executes declarative tests against an application-provided driver.
Mode comes from --dart-define=ensembleTestExecutionMode= (set by the CLI
for --mode=integration). Hosts only need:
Future<void> main() => runApplicationTests(driver: MyDriver());
Implementation
Future<void> runApplicationTests({
required ApplicationTestDriver driver,
String? testsAssetPrefix,
}) async {
final mode = executionModeFromEnvironment();
ensureApplicationTestBinding(mode);
return registerApplicationTests(
driver: driver,
mode: mode,
testsAssetPrefix: testsAssetPrefix,
);
}