-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathcoverage_policy.yaml
More file actions
41 lines (36 loc) · 1.16 KB
/
coverage_policy.yaml
File metadata and controls
41 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 2025 The Flutter Authors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Default minimum coverage percentage required for any package with a 'test' directory.
default_threshold: 80.0
# If true, the tool fails if coverage drops below the previously recorded baseline,
# even if the percentage remains above the minimum threshold.
enforce_no_regression: true
# Path to the baseline tracking file (relative to monorepo root).
baseline_file: "coverage_baseline.yaml"
# Global glob patterns for files to exclude from coverage calculation across all packages.
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.mocks.dart"
- "**/generated/**"
# Package-specific overrides (paths relative to monorepo root).
packages:
packages/genui:
threshold: 75.0
packages/a2ui_core:
threshold: 75.0
packages/json_schema_builder:
threshold: 75.0
dev_tools/catalog_gallery:
threshold: 50.0
dev_tools/composer:
threshold: 20.0
tool/test_and_fix:
threshold: 90.0
tool/release:
threshold: 75.0
examples/simple_chat:
enabled: false
examples/verdure/client:
enabled: false