Re: Code coverage report generation for JS files

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Pramod Ahire <pramod(dot)ahire(at)enterprisedb(dot)com>
Subject: Re: Code coverage report generation for JS files
Date: 2020-08-06 11:29:31
Message-ID: CANxoLDe57whExmd0MOVcBYC9s0Lds=9EZBH7YcJ-9B0-qFmD0w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Aditya

Please review it.

On Thu, Aug 6, 2020 at 12:12 PM Pramod Ahire <pramod(dot)ahire(at)enterprisedb(dot)com>
wrote:

> 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*
>
>
>
> [image:
> https://lh4.googleusercontent.com/U1erEuyI_d0xEUA0CrKjwx9aWQ52HNCxc38dMsLP-ZrLgfVNrhsrNobxlmeOdb1kMPtrrxcUwEHZgbGJC4R0qR4r1sBZa_z9R8ihFRaP2Hr_Wnhq6HcIQHe1ZoviDPwUkTdzNcg]
>
>
>
> C: +91-020-66449600/601
>
> D: +91-9028697679
>
> *edbpostgres.com <http://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*
>
>
>
> [image:
> https://lh4.googleusercontent.com/U1erEuyI_d0xEUA0CrKjwx9aWQ52HNCxc38dMsLP-ZrLgfVNrhsrNobxlmeOdb1kMPtrrxcUwEHZgbGJC4R0qR4r1sBZa_z9R8ihFRaP2Hr_Wnhq6HcIQHe1ZoviDPwUkTdzNcg]
>
>
>
> C: +91-020-66449600/601
>
> D: +91-9028697679
>
> *edbpostgres.com <http://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:
>
>
>
> 1. istanbul-instrumenter-loader
> 2. karma-coverage
>
>
>
> Steps to generate report:
>
>
>
>
> 1. Apply attached patch
> 2. Do - ‘npm install’
> 3. 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*
>
>
>
> [image:
> https://lh4.googleusercontent.com/U1erEuyI_d0xEUA0CrKjwx9aWQ52HNCxc38dMsLP-ZrLgfVNrhsrNobxlmeOdb1kMPtrrxcUwEHZgbGJC4R0qR4r1sBZa_z9R8ihFRaP2Hr_Wnhq6HcIQHe1ZoviDPwUkTdzNcg]
>
>
>
> C: +91-020-66449600/601
>
> D: +91-9028697679
>
> *edbpostgres.com <http://edbpostgres.com>*
>
>
>

--
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Sr. Software Architect*
*EDB Postgres <http://edbpostgres.com>*

*Mobile: +91 976-788-8246*

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-08-06 11:49:34 pgAdmin 4 commit: Update the sshtunnel version to v0.1.5.
Previous Message Akshay Joshi 2020-08-06 11:24:40 Re: [pgAdmin][RM5716] AJAX to generate the charts continues to fire after we disconnect the server