-
Notifications
You must be signed in to change notification settings - Fork 210
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
fix(test_api): 0.5.0 breaks flutter test
for projects that dont depend on flutter_test
#1977
Comments
Can you provide a full repro example of your setup? Are you trying to run flutter tests or Dart tests from flutter? |
Some additional info that would be useful:
|
@jakemac53 added some context to the issue and a reproducible sample. |
Can you run this test fine with |
Yes. |
cc @natebosch I think probably something changed in the communication channel between the test runner and tests, and without the |
I have no idea how we want to deal with this type of situation though... it is essentially unsupported that |
I think that probably the best thing we can recommend is that if you want to run |
I agree, I thought of opening an issue to let people be advised of this problem if they face it in the near future. |
Happy to leave this open for a bit so people can hopefully discover it and find the workaround. It might be helpful to that end if you add a "Workarounds" section to the top comment, suggesting either pinning test_api (note I would suggest doing this via regular In general the |
We should also consider filing an issue on the flutter repo, for |
haha, I already filed this a long time ago :( flutter/flutter#91107 |
Added that workarounds section 👍🏾 |
Yes, specifically the new de40c1c#diff-37c08d44d79fe33f695f7173107a674384e7fae4490ce3b14cda343d69d99490R55 I agree that there isn't anything we can do about this from the |
Thanks for the immediate replies |
### New Pull Request Checklist - [x] I have read the [Documentation](https://pub.dev/documentation/dio/latest/) - [x] I have searched for a similar pull request in the [project](https://github.com/cfug/dio/pulls) and found none - [x] I have updated this branch with the latest `main` branch to avoid conflicts (via merge from master or rebase) - [ ] I have added the required tests to prove the fix/feature I'm adding - [ ] I have updated the documentation (if necessary) - [x] I have run the tests without failures - [ ] I have updated the `CHANGELOG.md` in the corresponding package ### Additional context and info (if any) dart-lang/test#1977
Marking this as |
If this is common and the error comes from |
I published a new version of We should still add a check in |
Thanks, it was a tough problem |
Hey @natebosch, I'm trying to look into fixing this issue by checking for the |
I don't think we should need to see the original error to verify the fix - even when the package versions are aligned in the pub solve and the test would pass I think we should validate the state of |
After the release of version
0.5.0
of thetest_api
package, one may face a weird error message when runningflutter test
on a project that doesn't have a dependency onflutter_test
(which comes from flutters SDK):After adding this to the pubspec file, tests run nomally:
Additional context:
Minimal reproducible sample: https://github.com/renancaraujo/test_api_issue
Flutter doctor:
flutter packages get
output:Workrounds 🧠🔨
Stop running
flutter test
on projects that don't depend onflutter_test
. See: Theflutter test
command should require aflutter_test
ortest_api
dependency (and check for it). flutter/flutter#91107Pin
test_api
to0.4.18
:The text was updated successfully, but these errors were encountered: