Skip to content

Commit

Permalink
Use global coverage script
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Aug 28, 2023
1 parent aa868a4 commit 1f9c9af
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
18 changes: 18 additions & 0 deletions coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh -e

# A script for computing combined coverage for all packages in the repo.
# This can be used for viewing coverage locally in your editor.

PACKAGES='cli db server types ui'

for PACKAGE_DIR in $PACKAGES
do
echo $PACKAGE_DIR
cd packages/$PACKAGE_DIR
dart pub get
dart test --coverage=coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib --check-ignore
cd ../..
done

dart pub global run combine_coverage --repo-path .
5 changes: 0 additions & 5 deletions packages/cli/coverage.sh

This file was deleted.

0 comments on commit 1f9c9af

Please sign in to comment.