Comments (15)
We are seeing the same thing with our build systems
from coverage.
FYI: I'm working hard to get this resolved
I'm almost ready to land the fix (https://codereview.chromium.org/1929063002/) for the blocking issue (dart-archive/vm_service_client#6)
I've already started on migrating the coverage package to this.
from coverage.
With this pull request - #108 - we have the ability to connect to a running dart app (with the vm service enabled) and collect LCOV coverage info.
I'll work with @cbracken to review the code. If you're itchy to get coverage working on your app, you could try out the code on your own box.
I've cleaned up the API and the binaries A LOT. Let me know if you miss anything I've removed.
from coverage.
Related - dart-archive/vm_service_client#6
from coverage.
Thanks for the update, I saw movement in the vm_service_client and figured as much but appreciate the post.
from coverage.
We've got the vm_service_client updated.
I'm doing work here - https://github.com/dart-lang/coverage/tree/migration
I'd really like to parse down what coverage does.
Is anyone consuming it for something other than coveralls.io?
from coverage.
I have couple builds for codecov. Would be happy to help
from coverage.
@kevmoo all of our packages at Workiva use codecov, although we collect coverage via dart_dev. It essentially just combines the two steps from this package (collect and format) into a single task, handles merging coverage if the package has multiple suites, and a few other things like auto-generating an HTML file and generating the HTML report. It's always been brittle though, so I'm not opposed to change. I'm also happy to help!
from coverage.
@evanweible-wf do you have sample code? What format do you use for upload, etc?
from coverage.
Sure. The reporting to codecov part is easy, they supply a bash script that takes a correctly formatted coverage file (lcov, gcov, json, etc):
pub run dart_dev coverage --no-html
bash <(curl -s https://codecov.io/bash) -f coverage/coverage.lcov
https://github.com/Workiva/w_transport/blob/master/.travis.yml#L13-L14
The coverage task in dart_dev handles running the coverage
executables across a set of test files and producing a single .lcov
file: https://github.com/Workiva/dart_dev/blob/master/lib/src/tasks/coverage/api.dart
from coverage.
@kevmoo I use https://aircover.co/ for my stuff. It takes in lcov and then pushes it to the server. The pushing is done in a plugin so the lcov just needs to be hanging out somewhere on the disk.
from coverage.
For anyone who needs SDK 1.16.0 support straight away while #108 is in review, I've pushed a branch containing the version we use inside Google for code coverage. It's a fairly minimal patch on a slightly older release than what's on master
, but has the advantage of being entirely backward-compatible and feature identical to the currently released version while working on newer SDKs.
Will discuss with @dgrove and @nex3 early next week to decide on the approach we want to take to get something released.
from coverage.
Closed by 521c4e5. Released in version 0.7.4.
from coverage.
Verified that coverage works again in WebStorm 2016.2, thanks a lot!
from coverage.
Thanks for verifying!
from coverage.
Related Issues (20)
- Add a benchmark to github CI HOT 1
- Which license is used in this project? HOT 1
- Speed up --function-coverage
- Filter files using a command line flag HOT 8
- Running coverage in new flutter project HOT 1
- --test param throws error when args are added (--test="test --concurrency=1") HOT 1
- incorrect branch and line coverage with const values HOT 1
- Add `--fail-under` option
- LCOV relative paths HOT 1
- No Coverage Generated
- Fix BRDA syntax in lcov files HOT 3
- Enable firehose for publishing from GitHub actions
- Clean up old SDK/VmService checks
- Tests with `Isolate.run` pause indefinitely. HOT 6
- Ignore like `// coverage:ignore-start` does not work HOT 1
- bug: `format_coverage` does now work when invoked with `dart pub global run`
- cover code for kIsWeb condition true and false both cases
- Test coverage doesn't work when using pattern matching to destructure a record HOT 1
- How to run coverage for multiple packages in a mono_repo HOT 1
- Coverage not reported correctly for too many line hits HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coverage.