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:
@@ -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...') {
|
||||
|
||||
Reference in New Issue
Block a user