Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inN3H-00017x-6N for pgadmin-hackers@arkaria.postgresql.org; Fri, 03 Jan 2020 13:31:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1inN3F-000523-Up for pgadmin-hackers@arkaria.postgresql.org; Fri, 03 Jan 2020 13:31:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inN3F-00051P-Jz for pgadmin-hackers@lists.postgresql.org; Fri, 03 Jan 2020 13:31:41 +0000 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1inN3D-0005Mq-8B for pgadmin-hackers@postgresql.org; Fri, 03 Jan 2020 13:31:40 +0000 Received: by mail-io1-xd2f.google.com with SMTP id n21so39762178ioo.10 for ; Fri, 03 Jan 2020 05:31:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0W+fecaAjCyeTbBBM7/aDPKYJCk8exAceQzifzEbKvk=; b=pjJ3E7XuGxhLw7cd3sY2/aYSCMctWF4LkJX072wqmF8CIKbEwSDEA5JwQDKBJxw8v7 jyPb9lsFPyeKV7PFIRIadPlZe6mTvdT/Tl/xyxZgXAuCtibNMOMF5GMnlYtmqPjeD1I7 pVEOkCNrWnhIZMNrZfy2pV6m5arIu0E/CE30utnyVmKUzAFvlSX059sko/6NYGrwlUOf UqaX29Wrgn+7bEobudxgq7jwvNescQvFw09FYEYfnh1GIuGUDfOUEhIGPwV+DwWTDpBK pNjrNEDhgNWsXIENpWcY9sJZ/ZTxJJYRm6exvkMCVVbber1oIhcOXasKIWfY4j2bQm+O ocSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0W+fecaAjCyeTbBBM7/aDPKYJCk8exAceQzifzEbKvk=; b=mRdebUaNYOEM4b/XcK5jmB9fVUstK91b/L2k2Ij+Ep8kJdea577/kBAX8SdHqHRGa+ YIKSWnB9P/mPQ4L0ycOMiD+1Xh5vXIYbx0vrNhoAQI3eUcTqbA6+TSZH3y211pAyZVtp 04/ukg8DWexPdy489Y/1AVDtcTnETcXFpVK053QnQgJDlkrj5jr6Cb3FwBGsI/cuX203 Gm0PccZrszb4ZfEjm48nnpylbrOGCZjjrCOR36g6hjIn9DTAMNm/R/4HaD11mbVnCoWa eQLMiNylsqkq9Igndtm6r5AI34xEBcOLmKU53bf1P9YXxojpjyuMaGCEu17KzbyV2/n6 y86g== X-Gm-Message-State: APjAAAW3kzR7JrPqzxa08PAtkTSVvgY1u3DGQcUyp/Kk6xhNBYv9ycge FXRDmkbb8yKyJ8lC8F/Ow9gmtTRkGoXbLE0yaJf33Ih0opzyvxXGbx20zUTYF/+Zx+v5G+Qg5k/ m+OxaqqMcQqnOLav7ZMuVNEtIPAcENKV5CNEwAdLe/grfr0e504Lo/uY4FvNfrxd9topy9CESBN DBXE8USVXHTmnc4Ucj2DdMuTQINdK9oEq5uu60k+Ck9tJOj4hMWFU= X-Google-Smtp-Source: APXvYqzEyT080wCP62ih8kpifeMDIAAZtLf4vmij+h5FoQU5xRXU6xZc5mOR7811ZzwMzjvgjR5yyodLcCsUqqBMYWM= X-Received: by 2002:a6b:e20c:: with SMTP id z12mr59729811ioc.236.1578058298282; Fri, 03 Jan 2020 05:31:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Fri, 3 Jan 2020 19:01:27 +0530 Message-ID: Subject: Re: [pgAdmin][RM5048] : code coverage tool To: navnath gadakh Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="0000000000004e0e0d059b3c5466" X-CLOUD-SEC-AV-Info: edb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000004e0e0d059b3c5466 Content-Type: text/plain; charset="UTF-8" Thanks, patch applied. On Fri, Jan 3, 2020 at 1:38 PM navnath gadakh wrote: > 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* > -- *Thanks & Regards* *Akshay Joshi* *Sr. Software Architect* *EnterpriseDB Software India Private Limited* *Mobile: +91 976-788-8246* --0000000000004e0e0d059b3c5466 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, patch applied.

On Fri, Jan 3, 2020 at 1:38 PM navna= th gadakh <navnathgadakh@gmai= l.com> wrote:
Hi Team,
=C2=A0 =C2=A0 =C2=A0 P= lease find the attached patch to calculate code coverage if pgadmin code(py= thon tests).
I have extended the existing= testsuite to enable coverage. I have used python's coverage module.

S= ome useful commands:=C2=A0

=
before running the commands make sure you crea= te .coveragerc file under /regression directory(details mentioned in README= )
Run coverage
    With all modules
run 'python runtests.py --coverag= e --exclude feature_tests'
With specific module
run &= #39;python runtests.py --pkg browser.server_groups.servers.tests --coverage= '
Thanks!
--=C2=A0
Regards,
Navnath Gadakh
<= /div>


--
Thanks & Regards
=
Akshay Joshi
Sr. Software Architect
EnterpriseDB Software India Private Limited
=
Mobile: += 91 976-788-8246
--0000000000004e0e0d059b3c5466--