Latest flutter_test not working with latest test plugin

1,010 views
Skip to first unread message

Suzuki Tomohiro

unread,
Oct 6, 2020, 11:56:52 PM10/6/20
to Flutter Development (flutter-dev)
Hi all,

Does anyone now how to use "test" plugin in the latest SDK 1.22?

I upgraded my project to the latest Flutter SDK 1.22 today. Now "flutter pub get" cannot resolve dependency of the latest "test" plugin 1.15.4 because of conflicting dependency constraints.

https://gist.github.com/suztomo/567b483ed395836a5d04899dabb2cef3 has the output of flutter doctor and example pubspec.yaml

The error message says:

Because test >=1.15.3 <1.16.0-nullsafety depends on test_api 0.2.18 and every version of flutter_test from sdk depends on test_api 0.2.19-nullsafety.2, test >=1.15.3 <1.16.0-nullsafety is incompatible with flutter_test from sdk. So, because test_conflict depends on both flutter_test any from sdk and test 1.15.4, version solving failed.
(The message is complex to read especially because it mentions "-nullsafety" suffix. My project still uses nulls.)

From my perspective, the latest stable Flutter SDK 1.22 does not work with the latest "test" plugin. Does anyone know how to resolve this issue?

Regards,
Tomo

Suzuki Tomohiro

unread,
Oct 7, 2020, 9:59:05 AM10/7/20
to Flutter Development (flutter-dev)
Thank you. It worked. (I had to empty pedantic's version as well)

On Wed, Oct 7, 2020 at 6:33 AM Mayank Raj <mayank...@gmail.com> wrote:
Only use test: not use version code there are so many bugs in flutter right now that's why happening to you 

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/CAHWORbrztJ7wOgtbDLLVfcQ%2BABxE8cbeTvshCu1%2Bap%3D397o6Qg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages