Open
Description
Testing code that uses bool.fromEnvironment
, it looks like
dart -Dfoo=true test
never picks up the true value with the default -c kernel
, but with -c source
it does.
This took me a while to figure out, maybe it could be supported?
It looks like "flutter test" does support it via --dart-define
, although I didn't try it.
Maybe just a note in the docs that it works with flutter test
but there's no full equivalent in dart test
?
Thanks :)
Metadata
Metadata
Assignees
Labels
No labels