Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide code coverage information for unit test (or e2e test) execution #27

Open
PMJMendes opened this issue Oct 14, 2016 · 5 comments
Open

Comments

@PMJMendes
Copy link

Provide source highliting (like EclEmma) after test execution according to which source lines and branches were executed during the test batch.

@angelozerr
Copy link
Owner

I think it's a big work. Perhaps we could start to provide a JUnit View like? I don't know if it's possible to do that. I must study result of test (never played with ng test).

@angelozerr
Copy link
Owner

angelozerr commented May 10, 2017

@PMJMendes I tell me if it's a really interesting feature since https://github.com/angul ar/angular-cli/wiki/test provides the capability to generate HTML pages with coverage.

When you execute:

ng test --code-coverage

You can generate report like

image

@PMJMendes
Copy link
Author

PMJMendes commented May 11, 2017 via email

@probert94
Copy link
Contributor

@angelozerr @PMJMendes I just created an Issue in typescript.java (See angelozerr/typescript.java#175), since this should be solved for typescript in general, not only for angular (in my opinion).
As you said, it will be pretty complex, but after a quick investiagation, it does not seem impossible to me.
There is already an Eclipse-implementation for code coverage in java and karma supports different coverage reporters, which results we could use.
Since there are already pretty cool reporters for karma (like the HTML-Reporter shown above), I don't think this has a high priority, but it would be a nice feature anyways.

@PMJMendes
Copy link
Author

PMJMendes commented May 12, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants