Closed
Description
I don't know if anyone has vigorously updated our test files to include both a pre-null-safety and a post-null-safety class, even if there are no new or deprecated test cases for the new class. For example, non_constant_case_expression_test.dart contains:
main() {
defineReflectiveSuite(() {
defineReflectiveTests(NonConstantCaseExpressionTest);
defineReflectiveTests(NonConstantCaseExpressionWithNullSafetyTest);
});
}
@reflectiveTest
class NonConstantCaseExpressionTest extends PubPackageResolutionTest {
// Test cases
}
@reflectiveTest
class NonConstantCaseExpressionWithNullSafetyTest
extends NonConstantCaseExpressionTest with WithNullSafetyMixin {}
I'm happy to grind through "all" of our test files (maybe all diagnostics/ tests and a few other directories?) and add null safety sibling test classes.
In addition, maybe I'll take the step of defaulting to null safety (since it is the default language version now), and write classes like FooTest and FooWithoutNullSafetyTest.