-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--coverage should generate a lcov.info file #1265
Comments
|
But why do we need an extra dependency for it when the flag is built-in? Flutter doesn't require people to install package:coverage. |
What's the workflow like with Flutter? Note that Flutter Tools does depend on |
Sure people could use Considering that as part of Dart 2.9, we now have an official |
That's a fair argument. I likely won't be able to get to this in the near future but I'm happy to review PRs. We'll likely have to model this as a breaking change. |
cc @jwren, and a +1 for supporting lcov in |
The
I'd be fine with changing I'm not sure that any other changes before then move the needle much in terms of making things feel consistent. I also do not think it is a good idea to try to do argument manipulation in |
Would it make sense to make This should make the change less breaking (if breaking at all as 2.9 is not stable yet) and not require hacking on
|
This is what I was referring to when I said "I also do not think it is a good idea to try to do argument manipulation in dart test to try to normalize things with some hack in The argument differences in |
If we do think its best to try to normalize the flags we should check whether the 3 flags that |
cc @jonahwilliams @zanderso can you have some background on the |
I've never used merge-coverage or coverage-path. coverage-path might just be for the fuchsia tooling, and merge-coverage requires having the lcov tool available which requires a bit of hacking on windows. IMO it's not really clear how useful it is. |
* add coverage package. See: dart-lang/test#1265 * use codecov * add codecov badge * fix test/coverage command & add .codecov.yml * remove unused factory * codecov ignore ffi structs
@christopherfujino do you know if we have any analytics for the usage of coverage test runs in the flutter tool? @bkonyi have we started collecting usage metrics from the dart dev tool? If we can validate what set of flags and behavior makes the most sense and that usage is low enough to not break a bunch of folks then we could look at these changes. |
@natebosch we do have usage metrics, but I don't believe we collect anything other than which commands are being used. I'm guessing we care about coverage flags provided to |
we have analytics of |
Gentle bump on this~ Being unable to run If we don't want a breaking change, what about a |
Currently when running
pub run test --coverage
ordart test --coverage
, only proprietary JSON files are generated.Most tools use an
lcov.info
file instead. It would be great if--coverage
could generate that file too.The text was updated successfully, but these errors were encountered: