Can't run tests in Unsound Null Safety Mode
See original GitHub issueSteps to Reproduce
Running individual tests requires adding --no-sound-null-safety
argument. And currently there’s no way to pass the argument.
Even if there was a way to pass the argument through configuration, it’ll still be a bit of a hassle as we would need to update configuration for individual tests with the argument.
It’ll be nice if a switch in Settings could be added, where users would be able to force using Sound or Unsound Null Safety mode for tests.
Version info
[✓] Flutter (Channel dev, 1.25.0-4.0.pre, on Linux, locale en_US.UTF-8) • Flutter version 1.25.0-4.0.pre at *** • Framework revision a7f5fd5360 (3 days ago), 2020-11-30 13:14:13 +0100 • Engine revision 20caf54969 • Dart version 2.12.0 (build 2.12.0-76.0.dev)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Unsound null safety - Dart
Sound null safety is what you want if possible. Dart tools automatically run your program in sound mode if the main entrypoint library...
Read more >Cannot run with sound null safety because dependencies don ...
First, you should read through the guide to understand unsound null safety. If you are sure that you want to run your application...
Read more >[SOLVED] Flutter : Cannot run with sound null safety, because ...
Solution. If you want run your project with --no-sound-null-safety so now you add this line your main. dart file in top(first line) with ......
Read more >Adding no-sound-null-safety to VSCode - YouTube
In the previous screencast, we saw that running a hybrid app required permitting legacy mode from a command-line argument.
Read more >test | Dart Package - Pub.dev
The test runner does not support general purpose flags to control compilation such as -D defines or flags like --no-sound-null-safety . In most...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@stevemessick How can we set
--no-sound-null-safety
argument for every test by default, without having to add the argument manually to each test configuration?Update: if we get to this in the near term, we should patch the change into the current (M52) release