main function

Future<void> main([
  1. List<String> args = const <String>[]
])

Implementation

Future<void> main([List<String> args = const <String>[]]) async {
  if (isJustHelpArgs(args)) {
    printTestCliTitle();
    BonesUITestRunner().showHelp();
    return;
  }

  BonesUITestRunner bonesUITestRunner;

  try {
    bonesUITestRunner = BonesUITestRunner(args: args);
  } catch (e) {
    print('** ERROR Parsing Bones_UI Test Tool ARGS: $args');
    print('-- See `bones_ui test -h` OR `dart test -h` for test parameters.');
    print(e);
    exit(1);
  }

  printTestCliTitle(testPlatform: bonesUITestRunner.platform);

  await bonesUITestRunner.execute();
}