How can the code coverage data from Flutter tests be displayed?

后端 未结 6 681
别那么骄傲
别那么骄傲 2020-12-25 11:23

I\'m working on a Flutter app using Android Studio as my IDE.
I\'m attempting to write tests and check the code coverage but I can\'t work out how to view the data in th

6条回答
  •  星月不相逢
    2020-12-25 11:54

    You can view the code coverage generated by flutter with the Atom editor.
    You just need to install the Dart and icov-info packages.

    Then you load your project folder and press Ctrl+Alt+c, coverage will be displayed with a summary of the whole projects coverage and also with specific line highlighting.

    There doesn't appear to be any plugin for Android studio which does this as of yet.

提交回复
热议问题