Skip to content

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

Open

Description

@PMJMendes

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

Activity

  1. angelozerr commented on Oct 14, 2016

    @angelozerr
    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).

  2. angelozerr commented on May 10, 2017

    @angelozerr
    Owner

    @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

  3. PMJMendes commented on May 11, 2017

    @PMJMendes
    Author
  4. probert94 commented on May 12, 2017

    @probert94
    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.

  5. PMJMendes commented on May 12, 2017

    @PMJMendes
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions