-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in coverageRelates to collecting code coverage when running Dart/Flutter testsRelates to collecting code coverage when running Dart/Flutter testsin flutterRelates to running Flutter appsRelates to running Flutter appsin testingRelates to test execution of Dart/Flutter tests for end usersRelates to test execution of Dart/Flutter tests for end usersis enhancement
Milestone
Description
1. Is your feature request related to a problem? Please describe it
I've been working on a package that has hundreds of tests, so an easy way of visualizing code coverage would be incredibly handy.
2. Describe the solution you'd like
I would like to run my tests with, say, a .vscode configuration with an lcov.info output which would automatically be recognized by VS Code and highlighted on the respective editors with either red or green.
3. Describe alternatives you've considered
I've tried many different solutions in the past few days — months actually — but none of them worked as the ideal one described above:
flutter test --coverage --coverage-path=lcov.infodoes work to generate the necessary file, but it's clunky to have to visualize it through a 3rd party program such asgenhtml, all the more if you're on Windows.- And it does need Flutter in the end, which should not be necessary if you're working on pure Dart...
- IntelliJ would supposedly work ideally, but I just can't seem to enable the Run with Coverage button on mine, even after installing the
test_coveragepackage.- Though one person on Gitter told me he has it working on his IntelliJ.
- Both the
coverageand thetest_coveragepackages offer something close to what I described above, but their solutions are way clunkier — and on Windows they are tough to set up... - codecov.io is an alternative with a 3rd party, but it's annoying to have to handle this externally when the editor offers a much more flexible and faster experience.
HerrNiklasRaab, AlvaroVasconcelos, athomas, nilsreichardt, matuella and 11 more
Metadata
Metadata
Assignees
Labels
in coverageRelates to collecting code coverage when running Dart/Flutter testsRelates to collecting code coverage when running Dart/Flutter testsin flutterRelates to running Flutter appsRelates to running Flutter appsin testingRelates to test execution of Dart/Flutter tests for end usersRelates to test execution of Dart/Flutter tests for end usersis enhancement