Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .github/workflows/dart-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
with:
channel: 'stable'

- name: Set environment
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

- name: Get dart dependencies.
run: make dependencies

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ node_modules/

## Test coverage
coverage/
**/test/.test_coverage.dart
coverage.lcov

## Test resources
**/test_resources/lib
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ unit-test:
cd packages/core/ && dart pub run test && cd ..

coverage:
cd packages/core/ && dart pub run test_coverage --no-badge && cd ..
./scripts/coverage.sh packages/core
./scripts/codecov.sh ${CODECOV_TOKEN}

setup-ubuntu:
Expand Down
16 changes: 0 additions & 16 deletions packages/core/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.5.1"
lcov:
dependency: transitive
description:
name: lcov
url: "https://pub.dartlang.org"
source: hosted
version: "5.7.0"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -498,15 +491,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.11+4"
test_coverage:
dependency: "direct dev"
description:
path: "."
ref: HEAD
resolved-ref: d51c9577f78893e1654de8b7c1e92d2f8097838a
url: "https://github.com/shyndman/test-coverage.git"
source: git
version: "0.4.0"
time:
dependency: transitive
description:
Expand Down
2 changes: 0 additions & 2 deletions packages/core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ dependencies:

dev_dependencies:
test: ^1.15.7
test_coverage:
git: https://github.com/shyndman/test-coverage.git # TODO: https://github.com/pulyaevskiy/test-coverage/issues/14
effective_dart: ^1.3.0
build_runner: ^1.11.1
json_serializable: ^3.5.1
18 changes: 0 additions & 18 deletions packages/core/test/.test_coverage.dart

This file was deleted.

9 changes: 9 additions & 0 deletions scripts/coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -o pipefail

DIR="${1}"
cd ${DIR}
dart pub global activate coverage
dart test --coverage="coverage"
format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib