warnDartOrFlutterTests method

void warnDartOrFlutterTests({
  1. required bool isFlutterOnly,
  2. required bool isDartOnly,
})

Implementation

void warnDartOrFlutterTests({
  required bool isFlutterOnly,
  required bool isDartOnly,
}) {
  if (isDartOnly || isFlutterOnly) {
    if (isDartOnly && !isFlutterOnly) {
      logger.info('Running only dart tests');
    } else if (isFlutterOnly && !isDartOnly) {
      logger.info('Running only flutter tests');
    } else {
      logger.info('Running both dart and flutter tests');
    }
  }
}