Flutter: Inline Test Coverage in Android Studio

前端 未结 2 1279
一向
一向 2021-01-19 01:25

I\'m developing an open source Android app in Flutter, using Android Studio 3.3.1 (on Window and Ubuntu). The source is available on Github.

The project has a test f

2条回答
  •  無奈伤痛
    2021-01-19 01:51

    The 'Run with Coverage' option in Android Studio is enabled only for Flutter integration tests for some reason (at least for me).

    I wrote an article that describes how to generate code coverage reports locally and on CodeCov and CoverAlls that should get you close to what you want to do. Includes all source code and shows live examples.

    It works for both flutter and dart packages.

    You can find it here: https://medium.com/@nocnoc/combined-code-coverage-for-flutter-and-dart-237b9563ecf8

提交回复
热议问题