Skip to content
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

Merge coverage package #288

Closed
wants to merge 574 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
574 commits
Select commit Hold shift + click to select a range
cd24d94
Run Travis CI tests on Dart stable branch (#233)
cbracken Oct 13, 2018
0e7a0d1
Replace uses of forEach with for-in loops (#232)
cbracken Oct 13, 2018
3194429
Move constructor definitions to top of classes (#234)
cbracken Oct 13, 2018
da7bec3
Eliminate Dartium-related instructions (#235)
cbracken Oct 13, 2018
64d6598
Use VMScriptRef to identify VM scripts, not URI (#216)
cbracken Oct 19, 2018
a3c5694
Version 0.12.3 (#237)
cbracken Oct 19, 2018
30daa1b
pub badge
pq Oct 29, 2018
9df3c47
Merge pull request #238 from dart-lang/pq-pub-badge
pq Oct 29, 2018
7798231
Fix format_coverage type error
jcollins-g Dec 12, 2018
957f3de
Merge pull request #240 from dart-lang/format_coverage_type_error
jcollins-g Dec 13, 2018
cf2e7ce
Throw ArgumentError when null serviceUri specified (#241)
cbracken Jan 11, 2019
0f51b7b
Version 0.12.4 (#242)
cbracken Jan 11, 2019
a59609c
Enable No Response GitHub bot (#243)
cbracken Jan 15, 2019
5d50f95
Wait for all isolates to pause in test runs (#244)
cbracken Jan 15, 2019
32e9b81
Eliminate duplicate lint: control_flow_in_finally (#247)
cbracken Feb 19, 2019
3050247
Remove outdated codereview.settings
kevmoo Apr 16, 2019
85170a0
Remove outdated analysis options
kevmoo Apr 16, 2019
4e427bd
bump SDK constraint to a stable release
kevmoo Apr 16, 2019
cff65c9
Travis: test on oldest supported SDK
kevmoo Apr 16, 2019
cb2d306
update travis config
kevmoo Apr 16, 2019
c20c775
Travis: use --disable-service-auth-codes
kevmoo Apr 17, 2019
2660fa1
Remove optional 'new' keyword (#253)
cbracken May 14, 2019
422236e
Migrate to Dart 2 typedefs and parameter defaults (#254)
cbracken May 14, 2019
95eefba
Declare locals final where possible (#255)
cbracken May 14, 2019
77c6643
Migrate from vm_service_client to vm_service_lib (#256)
cbracken Jul 9, 2019
8176802
Disable websocket compression on service port (#258)
cbracken Jul 9, 2019
51d4e6d
Skip dart: sources by default (#257)
cbracken Jul 10, 2019
32eb6a0
Version 0.13.0 (#259)
cbracken Jul 10, 2019
84a6e23
Handle null coverage range
grouma Jul 18, 2019
b9daef4
Merge pull request #260 from dart-lang/handle-null
grouma Jul 18, 2019
4b795ed
Support scoped output
grouma Jul 23, 2019
5f879fa
better help
grouma Jul 23, 2019
1e0692f
support proper sdk
grouma Jul 23, 2019
611b4cc
Merge pull request #262 from dart-lang/scoped-output
grouma Jul 23, 2019
98de9ea
Migrated to pkg:vm_service (#263)
kevmoo Jul 29, 2019
284211c
small spelling tweaks (#264)
kevmoo Jul 29, 2019
0b6d40c
Document includeDart parameter on collect() (#266)
cbracken Aug 9, 2019
2590616
comment and default (#267)
grouma Aug 14, 2019
e7e4a50
Add --disable-service-auth-codes in README (#268)
a14n Sep 25, 2019
c7a93e9
Support filtering coverage by isolate ID (#270)
willdrach-wk Sep 27, 2019
b58e2e7
Version 0.13.3 (#271)
cbracken Sep 28, 2019
1000673
Allow vm_service >=1.0.0 <3.0.0 (#274)
Stargator Oct 10, 2019
da2f533
Version 0.13.3+1
cbracken Oct 10, 2019
ae49676
Test that const decls are not marked coverable (#277)
cbracken Oct 10, 2019
64bccd2
Version 0.13.3+2 (#279)
cbracken Dec 3, 2019
710011e
Loosen version restriction on package:vm_service (#280)
bkonyi Dec 4, 2019
070fde4
parseChromeCoverage (#281)
grouma Jan 24, 2020
2989238
prep to publish (#282)
grouma Jan 24, 2020
2ad3de9
Handle source map parse errors (#284)
grouma Jan 31, 2020
e41c7f1
Merge Coverage data (#283)
grouma Jan 31, 2020
91b18bf
prep to publish (#285)
grouma Feb 1, 2020
9aaaa57
analysis_options: remove unsupported error code
kevmoo Feb 4, 2020
9fa925b
Fix lints in test/chrome_test.dart
kevmoo Feb 4, 2020
b272391
Fix an issue where an async error was not caught where intended
kevmoo Feb 4, 2020
171ad38
Merge pull request #286 from dart-lang/tweaks
kevmoo Feb 5, 2020
9f5328b
Enable standard pedantic lints (#287)
kevmoo Feb 5, 2020
d2417cf
Rename a variable for clarity (#288)
natebosch Feb 6, 2020
628ec9b
Consider all json for format (#290)
grouma Feb 10, 2020
4236d91
update the Resolver api to use the new package config api
jakemac53 Feb 14, 2020
806882a
update to use the real package_config 1.9.0 and fix tests and .packag…
jakemac53 Feb 27, 2020
6289533
bump sdk to 2.7.0
jakemac53 Feb 27, 2020
203040b
add ignores for deprecations in the same package
jakemac53 Feb 27, 2020
3a850a2
add some tests, fix bug with relative paths
jakemac53 Feb 27, 2020
d47d657
add note about new deprecated argument
jakemac53 Feb 27, 2020
0e428d2
Make resumeIsolate robust, resilient in the face of exiting application
aam Feb 28, 2020
9831aa6
Enclose getIsolate into try-catch too
aam Feb 28, 2020
bd4a1cb
Guard against sync errors
aam Feb 28, 2020
8ba1938
dartfmt
aam Feb 28, 2020
74218b2
Merge pull request #293 from dart-lang/robust-resume
aam Feb 28, 2020
3642734
Bump package:vm_service dependency to allow for 3.x.x (#294)
bkonyi Feb 28, 2020
2d8662e
make the tests runnable in bazel
jakemac53 Mar 2, 2020
a584c51
Merge branch 'master' into new-package-config
jakemac53 Mar 2, 2020
1c73ffe
Merge pull request #292 from dart-lang/new-package-config
jakemac53 Mar 2, 2020
fa69108
Remove unused imports (#296)
kevmoo Mar 5, 2020
c599e71
Use a more standard Dart + travis config (#295)
kevmoo Mar 5, 2020
dc781b1
Don't crash on empty coverage JSON files
kevmoo Mar 5, 2020
07d781e
Fix newly failing lints
kevmoo Mar 5, 2020
418bd76
Update to package:vm_service 4.0.0
bkonyi Mar 9, 2020
6e71d46
Update version
bkonyi Mar 9, 2020
cda1394
Remove unnecessary casts
bkonyi Mar 9, 2020
822fee5
Merge pull request #298 from dart-lang/roll_vm_service_4.0.0
bkonyi Mar 9, 2020
6de1d8e
Fix for latest Dart analyzer update
kevmoo Mar 11, 2020
cdb20e0
Fix for latest Dart analyzer update (#299)
kevmoo Mar 11, 2020
21fe78e
Fix outdated URLs in readme
kevmoo Mar 13, 2020
c610ac1
Retry collect_coverage_test 3x (#300)
kevmoo Mar 25, 2020
aae5c1f
Remove gratuitous title from readme
kevmoo Mar 25, 2020
265e0e1
Add the ability to ignore lines from coverage depending on the commen…
pasindud Jun 3, 2020
d50e7a7
Revert breaking change in 13.10 (#304)
grouma Jun 4, 2020
1456963
Revert the 0.13.11 revert and properly model it as a breaking change …
grouma Jun 4, 2020
8ed18cd
Remove unused dart:async imports
MichaelRFairhurst Aug 20, 2020
81d7258
Update package:vm_service to allow for ^5.0.0 releases
bkonyi Sep 10, 2020
db9f9b8
Update CHANGELOG.md
bkonyi Sep 10, 2020
18d0873
Update pubspec.yaml
bkonyi Sep 10, 2020
8a9d05c
Update .travis.yml
bkonyi Sep 10, 2020
e8e032a
Revert .travis.yaml
bkonyi Sep 10, 2020
52d03dd
Update .travis.yml
bkonyi Sep 10, 2020
cc9cf7a
Disable testing against stable
bkonyi Sep 10, 2020
e43122f
Merge pull request #307 from dart-lang/roll_vm_service
bkonyi Sep 10, 2020
ea8e206
Send master failure notice to Chat bot (#310)
kevmoo Sep 14, 2020
8a0ecfd
Merge pull request #306 from MichaelRFairhurst/remove-unused-async-im…
MichaelRFairhurst Sep 18, 2020
cdd0a4a
Fix --wait-paused with no isolates (#311)
grouma Sep 21, 2020
5b9babe
Remove unused dart:async import (#312)
MichaelRFairhurst Sep 22, 2020
6fca347
Version 0.14.2 (#320)
cbracken Nov 10, 2020
0ab82f7
Migrate to GitHub Actions (#325)
athomas Jan 12, 2021
b76e443
Remove packageRoot (#324)
lukaslihotzki Jan 13, 2021
f833019
Prep to publish 0.15.0 (#327)
grouma Jan 14, 2021
8335ca8
Support latest package:vm_service (#328)
grouma Jan 20, 2021
9a96962
update several deps to allow the latest stable (#329)
jakemac53 Feb 8, 2021
05cb719
migrate to null safety (#332)
jakemac53 Feb 26, 2021
8472b25
allow null to be returned from the Chrome sourceUriProvider (#333)
jakemac53 Mar 2, 2021
003b232
Pass packages argument to format_coverage (#336)
grouma Mar 19, 2021
1215aab
Prep to publish (#337)
grouma Mar 19, 2021
46b0ebd
Update CI setup, test on oldest supported SDK (#342)
kevmoo Apr 23, 2021
303956b
update ci (#343)
kevmoo Apr 27, 2021
7730443
WIP: Mostly done with function coverage, but need to update tests.
liamappelbe Apr 28, 2021
9037308
Support vm_service 7.0.0
bkonyi May 25, 2021
4413d09
Update pubspec.yaml
bkonyi May 26, 2021
0825073
Merge pull request #346 from dart-lang/roll_vm_service_7.0.0
bkonyi May 26, 2021
8d2da44
Return a sorted hitmap (#347)
grouma Jun 9, 2021
5aef5a9
Merge branch 'master' of github.com:dart-lang/coverage
liamappelbe Jun 11, 2021
74169d5
Fix merge cruft
liamappelbe Jun 11, 2021
ea9d4af
Fix tests
liamappelbe Jun 11, 2021
5de75b2
Add more tests
liamappelbe Jun 11, 2021
f3a4ae4
Fix analysis errors
liamappelbe Jun 11, 2021
b809d0b
Format
liamappelbe Jun 15, 2021
67a8255
Resolve comments
liamappelbe Jun 16, 2021
749e634
Put function coverage behind a flah
liamappelbe Jun 17, 2021
2ad1d5f
Fix analysis errors
liamappelbe Jun 18, 2021
61711c6
Update run_and_collect_test
liamappelbe Jun 18, 2021
a51712c
Merge pull request #348 from dart-lang/fncov
liamappelbe Jun 21, 2021
c9682c9
Remove references to travis (#349)
natebosch Aug 30, 2021
f58fc66
Use the report lines flag to speed up collecting coverage
liamappelbe Sep 1, 2021
f5c001d
Make sure we're using the lates package:vm_service
liamappelbe Sep 1, 2021
b600c0e
Bump version
liamappelbe Sep 1, 2021
dc94824
Update changelog
liamappelbe Sep 3, 2021
7f95c8d
Move reportLines to 1.1.0
liamappelbe Sep 7, 2021
9a68f63
Nate's comments
liamappelbe Sep 7, 2021
b473bf1
Merge pull request #350 from dart-lang/report_lines
liamappelbe Sep 7, 2021
1aedce5
Gather coverage once per isolate group
liamappelbe Sep 9, 2021
48209c6
Update failing test
liamappelbe Sep 10, 2021
0dec5be
Fix analyser errors
liamappelbe Sep 10, 2021
95f7ded
Merge pull request #352 from dart-lang/iso_groups
liamappelbe Sep 10, 2021
b54ad32
Require Dart >=2.14 (#351)
kevmoo Oct 13, 2021
ba9b1f7
Move to pkg:lints (#354)
kevmoo Oct 14, 2021
81d8369
Update vm_service to '>=8.1.0 <9.0.0' (#357)
bkonyi Dec 20, 2021
e0bffd1
Update vm_service to '>=8.1.0 <9.0.0' (#357)
bkonyi Dec 20, 2021
296f022
Prepare for 1.0.4 release
bkonyi Dec 20, 2021
6ab2758
Merge branch 'master' into 1.0.4_release
natebosch Dec 20, 2021
860a8e9
Merge pull request #358 from dart-lang/1.0.4_release
natebosch Dec 21, 2021
9956196
Change function coverage to be backwards compatible (#356)
liamappelbe Dec 23, 2021
34ff5af
Prepare for release (#360)
liamappelbe Jan 18, 2022
9ff9a41
updates readme documentation (#363)
Luckey-Elijah Feb 2, 2022
ea38c1b
Handle new VM service message format (#364)
bkonyi Feb 4, 2022
91393fd
Change support for VM service message from "Dart VM Service listening…
bkonyi Feb 7, 2022
32029bf
Change support for VM service message from "The Dart VM Service is li…
bkonyi Feb 9, 2022
cc436b6
Branch coverage (#361)
liamappelbe Feb 25, 2022
b2d4b47
Migrate tests to package_config.json (#368)
liamappelbe Mar 8, 2022
0d22376
correctly parse package_config files on windows with relative root UR…
jonahwilliams Mar 17, 2022
cf47302
Prepare for 1.2.0 release (#373)
liamappelbe Mar 24, 2022
11534c0
Deprecate --packages flag and add --package (#370)
liamappelbe Mar 29, 2022
f6988ec
Add repository to pubspec (#374)
devoncarew Apr 18, 2022
e018e0f
Add test_with_coverage.dart (#375)
liamappelbe Apr 29, 2022
070fc31
Use libraryFilters to speed up scopedOutput checks (#378)
liamappelbe May 11, 2022
beae5ee
Prepare for 1.3.0 release (#379)
liamappelbe May 11, 2022
1e9b512
Fix running test_with_coverage non-directly (#381)
jellynoone May 12, 2022
eae5dfb
Enable and fix mac and windows CI (#387)
liamappelbe May 16, 2022
8c1eb2b
test: drop special cases for Dart v1 SDKs (#394)
kevmoo Jun 15, 2022
2232edb
Fix branch coverage test (#396)
liamappelbe Jun 21, 2022
915df17
Add version of parseJson that can cache file reads and parses (#391)
jensjoha Jun 21, 2022
5ddfc2e
Bump vm_service version (#397)
liamappelbe Jun 21, 2022
9291e01
Put the token pos errors behind a debug flag (#395)
liamappelbe Jun 21, 2022
c7bf6ae
Ignore implicit functions (#400)
liamappelbe Jun 22, 2022
1a7b42c
Fix handling of part files in function coverage (#402)
liamappelbe Jun 23, 2022
105cc68
Switch analysis options to enable strict casts
kevmoo Jun 28, 2022
e6e1366
test: DRY up sources logic
kevmoo Jun 28, 2022
417036c
test: use pkg:test_process
kevmoo Jun 28, 2022
9576fe8
DRY up logic for handling serviceUri
kevmoo Jun 28, 2022
aa114af
test: use TestProcess more places (#406)
kevmoo Jun 29, 2022
9fcab14
Enable and fix non_constant_identifier_names lint (#407)
kevmoo Jun 29, 2022
69e832b
test: DRY up parsing and validating coverage JSON
kevmoo Jun 29, 2022
f9fdb87
Cleanup hitmap JSON generation
kevmoo Jun 29, 2022
6ffa448
test: improve function hit coverage testing
kevmoo Jun 29, 2022
bf9f4c5
Cleanup lib/src/run_and_collect.dart
kevmoo Jun 29, 2022
b827fd1
cleanup collect
kevmoo Jun 30, 2022
80f7e68
cleanup: bin/test_with_coverage.dart
kevmoo Jun 30, 2022
500129b
Support passing extra arguments to test via test_with_coverage
kevmoo Jun 28, 2022
eb133ef
Format and cleanup markdown files (#410)
kevmoo Jun 30, 2022
f0f946b
Ignore abstract methods (#412)
liamappelbe Jul 25, 2022
c16df54
ignore-line comments etc must be at the end of the line (#414)
liamappelbe Aug 11, 2022
4f61d12
Increase timeout to fix mac bot (#417)
liamappelbe Aug 18, 2022
f46c4f4
Add a benchmark (#419)
liamappelbe Aug 31, 2022
e9d5908
update the to standard Dart BSD license (#421)
devoncarew Sep 1, 2022
ac854a5
Use the new `IsolateRef.isolateGroupId` to speed up isolate deduping …
liamappelbe Sep 8, 2022
f26b473
Prepare to publish 1.6.0 (#423)
liamappelbe Sep 8, 2022
cb3ed9e
WIP: Handle SentinelException (#424)
liamappelbe Sep 20, 2022
d0230ac
Fix void_checks lint that happens with latest analysis (#425)
kevmoo Oct 11, 2022
786472e
blast_repo fixes (#429)
kevmoo Nov 14, 2022
b5ef95a
Bump coverallsapp/github-action from 1.1.2 to 1.1.3 (#430)
dependabot[bot] Nov 14, 2022
af6f281
update the no-response behavior configuration (#428)
devoncarew Nov 14, 2022
ca70a8c
Bump actions/checkout from 3.1.0 to 3.2.0 (#433)
dependabot[bot] Jan 3, 2023
4be228d
Update pkg:vm_service constraints to '>=9.4.0 <11.0.0' (#434)
derekxu16 Jan 12, 2023
6d7e930
Fix CI by updating pkg:mockito and generated code (#435)
kevmoo Jan 26, 2023
44d089f
Bump actions/checkout from 3.2.0 to 3.3.0 (#437)
dependabot[bot] Feb 1, 2023
806bd2f
Bump dart-lang/setup-dart from 1.3 to 1.4 (#436)
dependabot[bot] Feb 1, 2023
ea4b3db
update vm_service to allow vm_service:11.0.0 (#438)
CoderDake Feb 6, 2023
adb83e3
Run no response bot daily (#440)
kevmoo Feb 15, 2023
63e7b6a
Bump actions/checkout from 3.3.0 to 3.5.2 (#449)
dependabot[bot] May 8, 2023
e1b345e
Update LCOV link (#446)
dcharkes May 10, 2023
1382a78
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (#444)
dependabot[bot] May 10, 2023
7617720
Bump coverallsapp/github-action from 1.1.3 to 2.1.2 (#448)
dependabot[bot] May 10, 2023
c57d0a2
blast_repo fixes (#450)
devoncarew May 15, 2023
42aedfd
blast_repo fixes (#451)
devoncarew May 22, 2023
6f351fa
Bump actions/checkout from 3.5.2 to 3.5.3 (#455)
dependabot[bot] Jul 1, 2023
d8c4b24
Bump coverallsapp/github-action from 2.1.2 to 2.2.0 (#456)
dependabot[bot] Jul 1, 2023
308eade
Ignore enhancements (#454)
kturney Jul 6, 2023
0c92bc6
Bump coverallsapp/github-action from 2.2.0 to 2.2.1 (#458)
dependabot[bot] Aug 1, 2023
dbbd4ea
Don't analyze using dev channel (#459)
liamappelbe Aug 28, 2023
9f26a47
Bump actions/checkout from 3.5.3 to 3.6.0 (#460)
dependabot[bot] Sep 1, 2023
dc88140
Bump coverallsapp/github-action from 2.2.1 to 2.2.3 (#462)
dependabot[bot] Oct 1, 2023
33bed36
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (#461)
dependabot[bot] Oct 1, 2023
fef2e4c
Prepare for 1.6.4 release (#464)
bkonyi Oct 2, 2023
8f1b6fd
Bump actions/checkout from 3.6.0 to 4.1.0 (#463)
dependabot[bot] Oct 2, 2023
2a54630
Add `coverableLineCache` param to `collect` (#466)
liamappelbe Oct 18, 2023
0ec4281
Update package:vm_service to >=12.0.0 <14.0.0 (#468)
bkonyi Oct 25, 2023
ebeec4a
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#470)
dependabot[bot] Nov 1, 2023
0e224f0
Bump actions/checkout from 4.1.0 to 4.1.1 (#469)
dependabot[bot] Nov 1, 2023
9afd32e
Move to latest lints (#471)
kevmoo Nov 9, 2023
1f05171
Update package:vm_service constraints to '>=12.0.0 <15.0.0' (#473)
derekxu16 Dec 13, 2023
19fc4dc
Bump actions/stale from 8.0.0 to 9.0.0 (#476)
dependabot[bot] Jan 1, 2024
451b1fa
Hint users how to let the ignore comments take effect (#475)
fzyzcjy Jan 2, 2024
a02b5be
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (#480)
dependabot[bot] Feb 1, 2024
eab438c
Fix nullability analysis error (#484)
liamappelbe Apr 18, 2024
e002020
Bump actions/checkout from 4.1.1 to 4.1.2 (#483)
dependabot[bot] Apr 18, 2024
1213c6c
Bump actions/checkout from 4.1.2 to 4.1.4 (#486)
dependabot[bot] May 1, 2024
f725ed9
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (#485)
dependabot[bot] May 1, 2024
db50d67
blast_repo fixes (#487)
devoncarew May 3, 2024
86bc137
Copy collect_coverage's `--scope-output` flag to test_with_coverage. …
liamappelbe May 6, 2024
3a70289
Bump the github-actions group with 2 updates (#491)
dependabot[bot] Jun 1, 2024
d2bc256
Bump the github-actions group with 2 updates (#493)
dependabot[bot] Jul 1, 2024
d3cb133
update lints (#494)
kevmoo Jul 8, 2024
a2c6bb7
Exclude the windows + SDK v3.4 combo (#499)
liamappelbe Jul 30, 2024
3445b78
Apply `--scope-output` filters after `getSourceReport` (#498)
liamappelbe Jul 31, 2024
6e9b683
Add --ignore-files option to exclude files from code coverage using p…
gogolon Aug 1, 2024
85a573e
Prepare to publish (#501)
liamappelbe Aug 1, 2024
2626a7d
Merge package:coverage into shared tool repository
mosuem Aug 9, 2024
7b003a8
Fixes to merge
mosuem Aug 13, 2024
ed6b1ef
Escape HTML
mosuem Aug 13, 2024
97227e1
Fix path
mosuem Aug 13, 2024
873cf20
Different fix for escaping HTML
mosuem Aug 13, 2024
94f4e13
Add issue template
mosuem Aug 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/coverage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:coverage"
about: "Create a bug or file a feature request against package:coverage."
labels: "package:coverage"
---
99 changes: 99 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Dart CI

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/coverage.yml'
- 'pkgs/coverage/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/coverage.yml'
- 'pkgs/coverage/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/coverage/
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, macos-latest, windows-latest
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: pkgs/coverage/
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [3.4, dev]
exclude:
# VM service times out on windows before Dart 3.5
# https://github.com/dart-lang/coverage/issues/490
- os: windows-latest
sdk: 3.4
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'

coverage:
needs: test
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/coverage/
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: dev
- id: install
name: Install dependencies
run: dart pub get
- name: Collect and report coverage
run: dart run bin/test_with_coverage.dart --port=9292
- name: Upload coverage
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: pkgs/coverage/coverage/lcov.info
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ don't naturally belong to other topic monorepos (like
| [extension_discovery](pkgs/extension_discovery/) | A convention and utilities for package extension discovery. | [![pub package](https://img.shields.io/pub/v/extension_discovery.svg)](https://pub.dev/packages/extension_discovery) |
| [graphs](pkgs/graphs/) | Graph algorithms that operate on graphs in any representation | [![pub package](https://img.shields.io/pub/v/graphs.svg)](https://pub.dev/packages/graphs) |
| [unified_analytics](pkgs/unified_analytics/) | A package for logging analytics for all Dart and Flutter related tooling to Google Analytics. | [![pub package](https://img.shields.io/pub/v/unified_analytics.svg)](https://pub.dev/packages/unified_analytics) |
| [coverage](pkgs/coverage/) |Coverage provides coverage data collection, manipulation, and formatting for Dart. | [![pub package](https://img.shields.io/pub/v/coverage.svg)](https://pub.dev/packages/coverage) |

## Publishing automation

Expand Down
18 changes: 18 additions & 0 deletions pkgs/coverage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Pub
packages
pubspec.lock
build
.dart_tool/
.pub
.packages

# IDEs
.project
.settings
.idea
*.iml

# Temp files
*~
coverage/
var/
12 changes: 12 additions & 0 deletions pkgs/coverage/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Below is a list of people and organizations that have contributed
# to the coverage project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
Achilleas Anagnostopoulos <achilleas.imap.mbox@gmail.com>
Adam Singer <adammichaelsinger@gmail.com>
Cédric Belin <cedxbelin@gmail.com>
Evan Weible <ekweible@gmail.com>
Günter Zöchbauer <guenter@gzoechbauer.com>
Will Drach <will.drach@gmail.com>
Loading