packageRunCi function
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);
}