合并多个测试的覆盖率报告

时间:2016-02-10 09:42:32

标签: dart coveralls

我有一个包含三个组件的存储库,前端,后端和移动应用程序(颤动)。每个都在他们自己的包中,并有自己的测试

frontend/pubspec.yaml
frontend/packages
frontend/lib/src
frontend/test/test_frontend.dart
backend/pubspec.yaml
backend/packages
backend/lib/src
backend/test/test_backend.dart
mobile/pubspec.yaml
mobile/packages
mobile/lib/src
mobile/test/test_mobile.dart
run_tests.sh

我使用dart_coveralls来计算代码覆盖率,并且可以轻松地为每个组件获取单独的报告

pub global run dart_coveralls report test/test_frontend.dart

但是,我想在一个包含前端,后端和移动组件的整个存储库中获得一个合并报告。我发现无法实际执行此操作,以下操作会生成合并报告,但它有问题并且实际上不包含任何覆盖。

pushd frontend
dart --observe=12345 test/test_frontend.dart &
pub global run coverage:collect_coverage --port=12345 -o ../cov/frontend.json --resume-isolates
popd
pushd backend
dart --observe=12345 test/test_backend.dart &
pub global run coverage:collect_coverage --port=12345 -o ../cov/backend.json --resume-isolates
popd
pub global run dart_coveralls upload --token <secret> --exclude-test-files cov

是否有可能为多个项目获得组合工作服报告。

0 个答案:

没有答案
相关问题