-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Converge package:test_runner and package:test? #56574
Copy link
Copy link
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).Cross-cutting test issues (use area- labels for specific failures; not used for package:test).test-technical-debtDealing with technical debt in the area of tests and testingDealing with technical debt in the area of tests and testingtype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).Cross-cutting test issues (use area- labels for specific failures; not used for package:test).test-technical-debtDealing with technical debt in the area of tests and testingDealing with technical debt in the area of tests and testingtype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently, inside the Dart SDK we use
package:test_runner. Outside the Dart SDK, people usepackage:test.Some of the features align:
test.dart.Some features don't align:
package:testhas annotations or named arguments, the Dart SDK status files.package:matchervspackage:expectSome SDK testing requirements are built in to
package:test_runnerand might not make sense outside the Dart SDK:// [cfe]and// [analyzer](Some of these things might actually be useful outside the Dart SDK. Multitests? Configurations to express cross-compilation once we start supporting that in standalone Dart. A serializable output for test results?)
Having these different solutions creates friction if packages are both used inside the Dart SDK and outside the Dart SDK. (For example: packages available outside the Dart SDK for users, or shared code between Dart and Flutter.)
Maybe we could reduce tech debt by trying to converge testing solutions.
It is not clear to me what the desired end state of a convergence should be, but some possibilities:
package:testsyntax for skips instead of status files.package:expectand starting to usepackage:matcher.package:test_runneron top ofpackage:testwith our SDK-specific requirements? (But not reinventing the wheel for shared things.)It's likely that trying to converge testing is a lot of effort, so we might not want to prio this. But I wanted a tracking bug.
@johnmccutchan Do we have a tracking issue on the Flutter side for converging testing frameworks?
N.b. Feel free to edit this issue to add bullet points to the list above.