Files
sdk/pkg/front_end/test/run_all_coverage_update.dart
T
Jens Johansen 92002aab4b [CFE] Run coverage update on weekly bot and print a diff
This CL will make the weekly bot run tests with coverage and update the
coverage, then printing the diff.

It runs:
 * All front_end suits
 * python3 tools/test.py -cfasta -mrelease -rnone language
 * All "_test.dart" files inside
   pkg/{_fe_analyzer_shared,front_end,frontend_server,kernel}/test

We can add more later if we find it useful, although I get something
like

```
$ git diff --stat
[...]
104 files changed, 359 insertions(+), 979 deletions(-)

$ git diff | wc -l
7118
```

so I'm unsure if it will be interesting or just too much data.

Change-Id: Ia0438e618371eff6739b8787accbc8d1425ad548
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448582
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2025-09-05 06:13:02 -07:00

22 lines
757 B
Dart

// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:io' show Directory;
import '../tool/coverage_merger.dart' show mergeFromDirUri;
import 'run_all_coverage.dart' show runAllCoverageTests;
Future<void> main() async {
Directory coverageTmpDir = await runAllCoverageTests(silent: true);
await mergeFromDirUri(
Uri.base.resolve(".dart_tool/package_config.json"),
coverageTmpDir.uri,
silent: true,
extraCoverageIgnores: ["coverage-ignore(suite):"],
extraCoverageBlockIgnores: ["coverage-ignore-block(suite):"],
addAndRemoveCommentsInFiles: true,
);
}