title: Code coverage for Angular/SPA application with e2e in selenium Java or cypress
body: <p>We want to measure Angular 8 application code coverage. We have a e2e test cases written in selenium java which loads the angular application which is deployed on another machine in browser and runs some set of e2e test casess. The question is how I can measure the Angular application javascript code coverage.</p>
  
  <p>At the high level i can think of some mechanism using istanbul to instrument my angular javascript code. Istanbul will record the code coverage while selenium java code executing the e2e test cases by loading the application in browser.</p>
  
  <p>Looking for details steps how i can do the same.</p>