Comments (1)
There are two components to the coverage package:
bin/collect_coverage.dart
: connects to a running VM or Dartium instance and, for each isolates gathers a hitmap (map of line number to hitcount) for each script loaded by that isolate. These hitmaps are then emitted to stdout in JSON format. Alternatively, the same JSON can be generated by running the VM with--coverage_dir=somedir
.bin/format_coverage.dart
: takes the JSON generated by either method in the step above, merges it down to a single set of hitmaps, one per script file, and emits it in the specified format: either pretty-printed source marked up with a per-line hitcount or in LCOV format.
Last I looked, Coveralls relies on --coverage_dir
which only works for VM coverage. I'm looking at options for automating collection of both VM and web coverage, which will likely require Dartium content-shell to be installed. #48 tracks that work.
I'll add documentation to README.md.
from coverage.
Related Issues (20)
- File gets removed from coverage wrongly when "// coverage:ignore-file" is used in Strings HOT 1
- Enhanced enums in Flutter don't get covered HOT 1
- Function inside function HOT 3
- 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 6
- 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
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.