angular-eclipse
angular-eclipse copied to clipboard
Provide code coverage information for unit test (or e2e test) execution
Provide source highliting (like EclEmma) after test execution according to which source lines and branches were executed during the test batch.
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).
@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
Hello,
From: Angelo [mailto:[email protected]]
@PMJMendeshttps://github.com/PMJMendes I tell me if it's a really interesting feature since
https://github.com/angular/angular-cli/wiki/test provides the capability to generate HTML pages with coverage ?
Hmmm, good call. I haven’t checked out the coverage HTML pages yet. If they work well, I guess it’s not as important a feature as it would be without them. Having the code colored directly in the editor is helpful, so I guess it’s probably still interesting, but just as a nice-to-have…
Cheers, J.
@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.
Hey, :)
From: Springrbua [mailto:[email protected]]
this should be solved for typescript in general, not only for angular (in my opinion).
I don't think this has a high priority, but it would be a nice feature anyways.
Agree on all counts.
Cheers, J.