dart test code coverage

Hi,

Webstorm 2016.2 has support for "Code coverage for Dart" (see here: https://www.jetbrains.com/webstorm/whatsnew/)

However I did not notice any new option for dart code coverage. Can you please show me how to display it? I'd love to see covered lines in production code while I write tests for it.

Thanks in advance.

1
3 comments

You need using 'Run with coverage' button to produce coverage. see https://youtrack.jetbrains.com/issue/WEB-15706#comment=27-1346762

1
Avatar
Permanently deleted user

Thanks, that works. Really nice visualization of covered / not covered LOCs.

I'd like to have code coverage getting updated when I run all unit tests with DartUnit (even better with the "auto-test" option enabled) but unfortunately this is not (yet) possible.

Maybe we will get there in the future :)

0

bump. with flutter on the rise this is nice

0

Please sign in to leave a comment.