Hi Team,
As recent updates have added ability to generate code coverage report for all the JS files.
Where had added two new packages as below:
- istanbul-instrumenter-loader
- karma-coverage
Steps to generate report:
- Apply attached patch
- Do - ‘npm install’
- Run – ‘yarn run test:karma’
It has below type of output formats supported:
- Html
- Lcov
- Cobertura
- Lcovonly
- Teamcity
- Text
- Text-summery
All the output files will be generated & stored in ‘root_dir/coverage’ folder (i.e pgadmin4/web/coverage or PEM/web/coverage).
For reference purpose have attached screenshot with this email & segregated patch for PEM/pgadmin.
Please do let me know your thoughts or suggestion if any.
Pramod Ahire
Software Engineer
C: +91-020-66449600/601
D: +91-9028697679
edbpostgres.com