Re: Code coverage report generation for JS files

From: Pramod Ahire <pramod(dot)ahire(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Code coverage report generation for JS files
Date: 2020-08-06 06:42:01
Message-ID: 82F40F14-1658-460C-A74E-A7705284463E@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

Please find updated patch for below changes:


Updated path for test files to module/test dir (As suggested by @Ashesh & @Nil)
Added exclusion expression for test cases
Added Lcov report generation along with html for sonarqube report combination

Please have a review & do let me know if any changes/suggestions.

Pramod Ahire

Software Engineer

C: +91-020-66449600/601

D: +91-9028697679

edbpostgres.com

From: Pramod Ahire <pramod(dot)ahire(at)enterprisedb(dot)com>
Date: Wednesday, 5 August 2020 at 4:45 PM
Subject: Re: Code coverage report generation for JS files

Missed Screenshot with previous email.

Pramod Ahire

Software Engineer

C: +91-020-66449600/601

D: +91-9028697679

edbpostgres.com

From: Pramod Ahire <pramod(dot)ahire(at)enterprisedb(dot)com>
Date: Wednesday, 5 August 2020 at 4:44 PM
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 .

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

Attachment Content-Type Size
PGADMIN-JASMINE-JS-COVERAGE-V2.patch application/octet-stream 3.1 KB
image/png 68.4 KB
image/png 68.4 KB
image/png 68.4 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-08-06 07:12:42 pgAdmin 4 commit: Fixed an issue where the user is not able to insert t
Previous Message Yogesh Mahajan 2020-08-05 14:16:22 [pgAdmin4][Patch] - SonarQube Issues - 13 (String literals should not be duplicated)