generateForFile method

Future<void> generateForFile(
  1. String filePath, {
  2. bool onlyMissing = false,
})

Generates tests for a single file. Used by both generateAll and watch mode.

Implementation

Future<void> generateForFile(String filePath, {bool onlyMissing = false}) async {
  await _processFile(filePath, mode: GenerateMode.all, onlyMissing: onlyMissing);
}