packageRunCi function

Future<void> packageRunCi(
  1. String path, {
  2. PackageRunCiOptions? options,
  3. bool? recursive,
  4. bool? noFormat,
  5. bool? noAnalyze,
  6. bool? noTest,
  7. bool? noBuild,
  8. bool? noPubGet,
  9. bool? verbose,
  10. bool? pubUpgrade,
  11. int? poolSize,
})

Run basic tests on dart/flutter package

if recursive is true, it also find dart/flutter package recursively poolSite allow concurrent testing (default to 4)

// run CI (format, analyze, test) on the current folder
await packageRunCi('.');

Implementation

Future<void> packageRunCi(String path,
    {PackageRunCiOptions? options,
    bool? recursive,
    bool? noFormat,
    bool? noAnalyze,
    bool? noTest,
    bool? noBuild,
    bool? noPubGet,
    bool? verbose,
    bool? pubUpgrade,
    int? poolSize}) async {
  options ??= PackageRunCiOptions(
      noPubGet: noPubGet ?? false,
      noTest: noTest ?? false,
      noFormat: noFormat ?? false,
      noAnalyze: noAnalyze ?? false,
      noBuild: noBuild ?? false,
      verbose: verbose ?? false,
      poolSize: poolSize,
      recursive: recursive ?? false,
      pubUpgradeOnly: pubUpgrade ?? false);

  await packageRunCiImpl(path, options,
      recursive: recursive ?? options.recursive, poolSize: poolSize);
}