From: | Pramod Ahire <pramod(dot)ahire(at)enterprisedb(dot)com> |
---|---|
To: | Postgres Enterprise Manager <pem(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Code coverage report generation for JS files |
Date: | 2020-08-05 11:14:14 |
Message-ID: | AE844207-0886-491F-81DC-B0A5AA7015DE@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
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
Attachment | Content-Type | Size |
---|---|---|
PEM-JASMINE-JS-COVERAGE-REPORT-V1.patch | application/octet-stream | 3.5 KB |
PGADMIN-JASMINE-JS-COVERAGE-V1.patch | application/octet-stream | 2.9 KB |
![]() |
image/png | 68.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Pramod Ahire | 2020-08-05 11:15:45 | Re: Code coverage report generation for JS files |
Previous Message | Yogesh Mahajan | 2020-08-05 08:09:03 | Bug #4387 - User can not insert any value on view data if table and column name contains *SELECT '<<SCRIPT>alert("XSS ");//<</SCRIPT>';* |