You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: remove coverage action in favor of CLI (#425)
* refactor: remove very good coverage in favor of CLI
* chore: use new CLI test flags
* chore: use latest in main
* chore: activate latest in main on flutter pkg
* chore: add and order missing flags to dart/flutter pkg
* chore: add missing flags and update docs
* chore: install very_good_cli from pub
* docs: add missing flags
* docs: update coverage_excludes
* chore: apply suggestions from code review
Co-authored-by: Marcos Sevilla <31174242+marcossevilla@users.noreply.github.com>
* fix(ci): format files
Copy file name to clipboardExpand all lines: site/docs/workflows/dart_package.md
+36-7Lines changed: 36 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,14 @@ This workflow runs helpful checks on a Dart package according to the steps below
10
10
11
11
The Dart package workflow consists of the following steps:
12
12
13
-
1. Install dependencies
14
-
2. Format
15
-
3. Analyze
16
-
4. Run tests
17
-
5. Check code coverage
13
+
1. Setup Dart
14
+
2. Set SSH Key (if provided)
15
+
3. Install dependencies
16
+
4. Run Setup (if provided)
17
+
5. Format
18
+
6. Analyze
19
+
7. Bloc Lint (if enabled)
20
+
8. Run tests (includes coverage collection and enforcement)
18
21
19
22
## Inputs
20
23
@@ -26,7 +29,7 @@ The Dart package workflow consists of the following steps:
26
29
27
30
### `coverage_excludes`
28
31
29
-
**Optional**List of paths to exclude from the coverage report, separated by an empty space. Supports `globs` to describe file patterns.
32
+
**Optional**Space-separated list of globs to exclude files from the coverage report (e.g. '**/\*.g.dart **/gen/\*.dart').
30
33
31
34
**Default**`""`
32
35
@@ -66,7 +69,7 @@ The Dart package workflow consists of the following steps:
66
69
67
70
### `check_ignore`
68
71
69
-
**Optional**Allows ignoring lines from [coverage](https://pub.dev/packages/coverage).
72
+
**Optional**Whether to check for and respect coverage ignore comments (e.g. `// coverage:ignore-line`).
70
73
71
74
**Default**`false`
72
75
@@ -107,6 +110,32 @@ The Dart package workflow consists of the following steps:
107
110
108
111
**Default**`false`
109
112
113
+
### `show_uncovered`
114
+
115
+
**Optional** Whether to show uncovered lines when coverage is below 100%. Implicitly enables coverage collection when used alone.
116
+
117
+
**Default**`true`
118
+
119
+
### `collect_coverage_from`
120
+
121
+
**Optional** Whether to collect coverage from imported files only or all files. Counting untested files against coverage (`all`) results in stricter enforcement.
122
+
123
+
**Allowed values**`imports`, `all`
124
+
125
+
**Default**`"imports"`
126
+
127
+
### `test_optimization`
128
+
129
+
**Optional** Whether to apply optimizations for test performance.
130
+
131
+
**Default**`true`
132
+
133
+
### `run_bloc_lint`
134
+
135
+
**Optional** Whether to run [bloc lint](https://pub.dev/packages/bloc_tools) on the package.
Copy file name to clipboardExpand all lines: site/docs/workflows/flutter_package.md
+47-6Lines changed: 47 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,14 @@ This workflow runs helpful checks on a Flutter package according to the steps be
10
10
11
11
The Flutter package workflow consists of the following steps:
12
12
13
-
1. Install dependencies
14
-
2. Format
15
-
3. Analyze
16
-
4. Run tests
17
-
5. Check code coverage
13
+
1. Setup Flutter
14
+
2. Set SSH Key (if provided)
15
+
3. Install dependencies
16
+
4. Run Setup (if provided)
17
+
5. Format
18
+
6. Analyze
19
+
7. Bloc Lint (if enabled)
20
+
8. Run tests (includes coverage collection and enforcement)
18
21
19
22
## Inputs
20
23
@@ -38,7 +41,7 @@ The Flutter package workflow consists of the following steps:
38
41
39
42
### `coverage_excludes`
40
43
41
-
**Optional**A space-separated list of paths to exclude from the coverage report. Supports `globs` to describe file patterns.
44
+
**Optional**Space-separated list of globs to exclude files from the coverage report (e.g. '**/\*.g.dart **/gen/\*.dart').
42
45
43
46
**Default**`""`
44
47
@@ -102,6 +105,44 @@ The Flutter package workflow consists of the following steps:
102
105
103
106
**Default**`"!*"`
104
107
108
+
### `platform`
109
+
110
+
**Optional** The platform to run tests on (e.g., `chrome`, `android`, `ios`).
111
+
112
+
**Default**`""`
113
+
114
+
### `report_on`
115
+
116
+
**Optional** A comma-separated list of folders that should be checked in code coverage.
117
+
118
+
**Default**`"lib"`
119
+
120
+
### `run_bloc_lint`
121
+
122
+
**Optional** Whether to run [bloc lint](https://pub.dev/packages/bloc_tools) on the package.
123
+
124
+
**Default**`true`
125
+
126
+
### `run_skipped`
127
+
128
+
**Optional** Run skipped tests instead of skipping them.
129
+
130
+
**Default**`false`
131
+
132
+
### `show_uncovered`
133
+
134
+
**Optional** Whether to show uncovered lines when coverage is below 100%. Implicitly enables coverage collection when used alone.
135
+
136
+
**Default**`true`
137
+
138
+
### `collect_coverage_from`
139
+
140
+
**Optional** Whether to collect coverage from imported files only or all files. Counting untested files against coverage (`all`) results in stricter enforcement.
0 commit comments