简体   繁体   中英

Run unit tests while using --no-sound-null-safety

My app uses the MVP pattern as its main Architecture Pattern which obliges me to run the app with flutter run --no-sound-null-safety. Is there a way to run unit tests (which requires to run the app with just flutter run) while still running the app with this flag ?

我通过降低 pubspec.yaml 中的 sdk 版本解决了这个问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM