0

We have an application that has an Angular front end, Java backend. We are using selenium (via Jenkins) to run a set of regression/integration tests against it.

We would like to be able to produce a report showing what areas of the code are covered by the tests. JaCoCo hooked in to the JVM would give us the coverage report for the Java code, but is there an equivalent to show us what % of the JS code is being exercised by the tests?

The instance of the application being tested isn't on the same server as the tests being run, or the jenkins server

2
  • medium.com/@the1mills/… (Istanbul Javascript code coverage) . Code coverage should be done for Unit testing rather than end to end tests. Commented Sep 2, 2019 at 8:51
  • @Rahul L, agreed. Its a request from our QA team to "prove" the auto tests are adequate Commented Sep 2, 2019 at 9:45

1 Answer 1

0

Although doing code coverage for end to end test is not best practice. Unit test are the ones responsible for doing it.

There are tools to automate this.

Looks at this a see if this fits your requirement.

https://levelup.gitconnected.com/generate-code-coverage-report-from-running-e2e-test-with-cypress-io-aaf6d47499e8

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.