[pgAdmin][RM5048] : code coverage tool

From: navnath gadakh <navnathgadakh(at)gmail(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin][RM5048] : code coverage tool
Date: 2020-01-03 08:00:16
Message-ID: CAN4uUur=uOQQQrfbJT7+MM9_Wyf+BgKtYzy8=4i62wP9FFFzoA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Team,
Please find the attached patch to calculate code coverage if pgadmin
code(python tests).
I have extended the existing testsuite to enable coverage. I have used
python's coverage module.

*Some useful commands: *

before running the commands make sure you create .coveragerc file under
/regression directory(details mentioned in README)
Run coverage

With all modules
run 'python runtests.py --coverage --exclude feature_tests'
With specific module
run 'python runtests.py --pkg
browser.server_groups.servers.tests --coverage'

Thanks!
--
*Regards,*
*Navnath Gadakh*

Attachment Content-Type Size
pgadmin_code_coverage_v1.patch application/octet-stream 7.2 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2020-01-03 09:43:04 Re: [pgAdmin][RM5038] Select2 enhancement - Load items on demand (scroll)
Previous Message Dave Page 2020-01-02 14:44:06 pgAdmin 4 commit: Update copyright notices for 2020.