Don't use a default test randomize ordering seed (#51018)

Fixes #51010

The test package differentiates between passing and not passing this
argument. A previous version had a bug that treated passing `0`
identically to not passing the argument, and the flutter test runner
relied on this bug by always passing a value and using a default of `0`.

- Remove the argument defaults throughout to make it clear that `null`
  is a valid value and the default.
- Remove the argument defaulting on the argument parser.
- Update the wording of the usage for this argument, this will also be
  updated on the `package:test` side.
This commit is contained in:
Nate Bosch
2020-02-25 13:01:40 -08:00
committed by GitHub
parent d73dd6b356
commit 9228b87eb3
4 changed files with 8 additions and 10 deletions

View File

@@ -54,8 +54,6 @@ Future<int> runTest({bool coverage = false}) async {
if (step == TestStep.starting && entry == 'Building flutter tool...') {
// ignore this line
step = TestStep.buildingFlutterTool;
} else if (step == TestStep.starting && entry.contains('Shuffling test order')) {
// ignore this line
} else if (step == TestStep.testPassed && entry.contains('Collecting coverage information...')) {
// ignore this line
} else if (step.index < TestStep.runningPubGet.index && entry == 'Running "flutter pub get" in automated_tests...') {