Skip to content

Commit

Permalink
test: add analyze command concurrency flag support
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicatarra committed Mar 26, 2024
1 parent 5b4e553 commit a26f54a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/melos/test/commands/analyze_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,16 @@ $ melos analyze
'''),
);
});

test('should run analysis with --concurrency flag', () async {
// when concurrency is set to a number bigger than 1 then
// the output should appears as the following
await melos.analyze(concurrency: 2);

final regex =
RegExp(r'\$ melos analyze\s+└> dart analyze --concurrency 2');

expect(regex.hasMatch(logger.output.normalizeNewLines()), isTrue);
});
});
}

0 comments on commit a26f54a

Please sign in to comment.