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: | Re: Code coverage report generation for JS files |
Date: | 2020-08-05 11:15:45 |
Message-ID: | 283C764B-31B4-4C08-8F8B-C5A6C98AEE64@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Missed Screenshot with previous email.
Pramod Ahire
Software Engineer
C: +91-020-66449600/601
D: +91-9028697679
From: Pramod Ahire <pramod(dot)ahire(at)enterprisedb(dot)com>
Date: Wednesday, 5 August 2020 at 4:44 PM
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
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 |
---|---|---|
Screenshot 2020-08-05 at 3.46.30 PM.png | image/png | 784.2 KB |
Screenshot 2020-08-05 at 3.47.05 PM.png | image/png | 675.1 KB |
Screenshot 2020-08-05 at 3.47.18 PM.png | image/png | 308.0 KB |
![]() |
image/png | 68.4 KB |
![]() |
image/png | 68.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Nikhil Mohite | 2020-08-05 11:19:10 | Patch for SonarQube code scan fixes. |
Previous Message | Pramod Ahire | 2020-08-05 11:14:14 | Code coverage report generation for JS files |