question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Dart/Flutter

See original GitHub issue

Is your feature request related to a problem? Please describe. It would be nice if the extension could be compatible with both Dart and Flutter.

Describe the solution you’d like Well, once you run flutter test --coverage you get a folder in the root named coverage which contains lcov.info. The rest you know.

Describe alternatives you’ve considered I have thinked about using a CI/CD thing but it would be nice to have coverage integrated with vscode.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ryanlukercommented, Feb 3, 2021

@Ascenio Thanks for creating a ticket! There was a bit of discussion for flutter / dart in the past https://github.com/ryanluker/vscode-coverage-gutters/issues/160 might be useful to look through there for some ideas to your issue if we cant solve it below.

Do you have an example project that we can see the outputed lcov.info for? I would think if flutter / dart generate an lcov.info file that is to the specification then the extension should “just work”. Also the extension already finds any files that are named lcov.info and tries to load them.

Could you look into the gutter logs in your vscode and see if anything is being loaded? image

After a quick bit of googling it seems others have got it working (with other vscode coverage extensions but the process of setting up the lcov.info might help). http://blog.wafrat.com/test-coverage-in-dart-and-flutter/

0reactions
Asceniocommented, Mar 9, 2021

Hello, it has been a while. I don’t know what was the problem before but now it seems to be working, I’m using a plain .lcov file and looks like it matches what the html version shows. Thanks for you support, guys. ✌️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Desktop support for Flutter
Flutter provides support for compiling a native Windows, macOS, or Linux desktop app. Flutter's desktop support also extends to plugins—you can install ......
Read more >
IntelliJ & Android Studio - Dart programming language
The Dart plugin adds Dart support to IntelliJ Platform-based IDEs developed by ... Android Studio which specializes in Android and Flutter development.
Read more >
How To Extend a Flutter Plugin To Support Web
import 'package:flutter_web_plugins/flutter_web_plugins.dart';. import 'package:rudder_sdk_flutter_platform_interface/platform.dart';.
Read more >
Dart / Flutter support in Kate
Add Dart support in our syntax highlighting framework · Add Dart server to our supported list of LSP servers · Fix the semantic...
Read more >
Dart | IntelliJ IDEA Documentation - JetBrains
Open the Marketplace tab, find the Dart plugin, and click Install (restart the IDE if prompted). Downloading the Dart tools. Download and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found