Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

How to Generate Code Coverage Report #1654

Closed
felangel opened this issue Nov 1, 2018 · 3 comments
Closed

How to Generate Code Coverage Report #1654

felangel opened this issue Nov 1, 2018 · 3 comments

Comments

@felangel
Copy link

felangel commented Nov 1, 2018

Project created using stagehand:
stagehand web-angular

Tests run using build_runner:
pub run build_runner test --fail-on-severe

How can I generate a coverage report? I have not found any documentation or examples online.
Ideally, I'd like to be able to do something like:
pub run build_runner test --fail-on-severe --coverage and have an lcov.info be generated in ./coverage/lcov.info.

  • [Dart VM version: 2.0.0 (Fri Aug 3 10:53:23 2018 +0200) on "macos_x64"] Dart SDK Version (dart --version)
  • [ "5.0.0"] AngularDart Version (i.e. 4.0.0, 5.0.0-alpha+5, MASTER)
  • [macOS] Whether you are using Windows, macOS, or Linux (if applicable)
  • [Chrome] Whether you are using Chrome, Safari, Firefox, Edge (if applicable)
@felangel felangel changed the title Create Code Coverage Report How to Generate Code Coverage Report Nov 1, 2018
@matanlurey
Copy link
Contributor

You will want to file this elsewhere. AngularDart has nothing to do with code coverage.

@felangel
Copy link
Author

felangel commented Nov 1, 2018

How does this have nothing to do with AngularDart? When I use AngularJS I get testing configured out of the box with coverage reporting.

It’s not a dart issue because I can generate coverage reports for my dart code no problem.

@matanlurey
Copy link
Contributor

When I use AngularJS I get testing configured out of the box with coverage reporting.

We are not the same project as AngularJS.

It’s not a dart issue because I can generate coverage reports for my dart code no problem.

The pub run build_runner test command is not owned by this team, we don't even have any hooks into it. You are looking for https://github.com/dart-lang/build/issues I believe.

@angulardart angulardart locked as resolved and limited conversation to collaborators Nov 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants