-
Notifications
You must be signed in to change notification settings - Fork 219
Don't export matcher #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ideally there would be a deprecation period. Is it possible to mark an export as deprecated? @deprecated
export package:matcher/matcher.dart; |
Filed a bug for deprecated exports. |
To be clear, although we don't have a problem with people using While it's true that the export creates a tight constraint on Essentially every test that's written using |
I noticed a 1.0.0 milestone was created for this repo. Due to the export of matcher, once that's released, any breaking changes to matcher will also require a breaking change (and thus major version bump) to this package.
Also, exporting matcher highly constrains the versions of matcher that can be used by a package dependening on this package (i.e. almost all packages). But matcher is useful in many contexts outside of unit testing. For example, I'd like to use it in unscripted via the constrain package which already does use Matcher. It is merely a means to test conditions and provide human readable lanuage for them, and explainations of why particular values don't match.
Adding dependencies on both packages wouldn't be too burdensome, especially if you use something like den (e.g.
den install test matcher
) or if your editor supports something similar. Making the versions match up will be easy oncematcher
stabilizes, which could be expedited via #2326.I don't see having to import
test
andmatcher
(ormatchers
) as a big deal, especially since you're often just copying over boilerplate code from another test file, and also the boilerplate could be generated for you via dart-archive/matcher#52.The text was updated successfully, but these errors were encountered: