Re: [pgAdmin][RM5048] : code coverage tool
Akshay Joshi <[email protected]> Fri, 3 Jan 2020 19:01:27 +0530
| Newsgroups | gmane.comp.db.postgresql.pgadmin.devel |
|---|---|
| Message-ID | <CANxoLDfkoENR317ze3Azp89DQca_944HQyGbinq5jFNqWR9cTg@mail.gmail.com> |
--0000000000004e0e0d059b3c5466 Content-Type: text/plain; charset="UTF-8" Thanks, patch applied. On Fri, Jan 3, 2020 at 1:38 PM navnath gadakh <[email protected]> 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 <div dir=3D"ltr">Thanks, patch applied.</div><br><div class=3D"gmail_quote"= ><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jan 3, 2020 at 1:38 PM navna= th gadakh <<a href=3D"mailto:[email protected]">navnathgadakh@gmai= l.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"ma= rgin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:= 1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail= _default" style=3D"color:rgb(0,0,0);font-family:"trebuchet ms",sa= ns-serif">Hi Team,</div><div class=3D"gmail_default" style=3D"color:rgb(0,0= ,0);font-family:"trebuchet ms",sans-serif">=C2=A0 =C2=A0 =C2=A0 P= lease find the attached patch to calculate code coverage if pgadmin code(py= thon tests).</div><div class=3D"gmail_default" style=3D"color:rgb(0,0,0);fo= nt-family:"trebuchet ms",sans-serif">I have extended the existing= testsuite to enable coverage. I have used python's coverage module.</d= iv><div class=3D"gmail_default" style=3D"color:rgb(0,0,0);font-family:"= ;trebuchet ms",sans-serif"><br></div><div class=3D"gmail_default" styl= e=3D"color:rgb(0,0,0);font-family:"trebuchet ms",sans-serif"><u>S= ome useful commands:=C2=A0</u></div><div class=3D"gmail_default" style=3D"c= olor:rgb(0,0,0);font-family:"trebuchet ms",sans-serif"><br></div>= <div class=3D"gmail_default" style=3D"color:rgb(0,0,0);font-family:"tr= ebuchet ms",sans-serif">before running the commands make sure you crea= te .coveragerc file under /regression directory(details mentioned in README= )</div><div class=3D"gmail_default" style=3D"color:rgb(0,0,0);font-family:&= quot;trebuchet ms",sans-serif"><span style=3D"color:rgb(51,51,51);font= -family:Menlo;font-size:10.5pt">Run coverage</span></div><div class=3D"gmai= l_default" style=3D"color:rgb(0,0,0);font-family:"trebuchet ms",s= ans-serif"><pre style=3D"color:rgb(51,51,51);font-family:Menlo;font-size:10= .5pt"> With all modules<br> run 'python runtests.py --coverag= e --exclude feature_tests'<br> With specific module<br> run &= #39;python runtests.py --pkg browser.server_groups.servers.tests --coverage= '</pre></div><div style=3D"color:rgb(0,0,0);font-family:-webkit-standar= d">Thanks!</div><span style=3D"color:rgb(0,0,0);font-family:-webkit-standar= d;font-size:medium">--=C2=A0</span><br style=3D"color:rgb(0,0,0);font-famil= y:-webkit-standard"><div dir=3D"ltr" style=3D"color:rgb(0,0,0);font-family:= -webkit-standard"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div d= ir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"l= tr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><di= v><font face=3D"trebuchet ms, sans-serif"><b style=3D"font-size:14px;white-= space:pre-wrap;color:rgb(106,115,125)">Regards,</b><br></font></div><div><f= ont color=3D"#6a737d" face=3D"trebuchet ms, sans-serif"><span style=3D"font= -size:14px;white-space:pre-wrap"><b>Navnath Gadakh</b></span></font></div><= /div></div></div></div></div></div></div></div></div></div></div></div></di= v></div></div></div> </blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"= class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div= dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div><font color=3D"#3333FF"= ><b><span style=3D"color:rgb(0,0,0);font-family:arial,sans-serif;font-size:= 13px;border-collapse:collapse">Thanks & Regards</span></b></font></div>= <div><font color=3D"#3333FF"><b><span style=3D"color:rgb(0,0,0);font-family= :arial,sans-serif;font-size:13px;border-collapse:collapse">Akshay Joshi</sp= an></b></font></div><div><font color=3D"#3333FF"><b><span style=3D"color:rg= b(0,0,0);font-family:arial,sans-serif;font-size:13px;border-collapse:collap= se">Sr. Software Architect<br></span></b></font></div><div><span style=3D"b= order-collapse:collapse"><font color=3D"#000000" face=3D"arial, sans-serif"= ><b>EnterpriseDB Software India Private Limited</b></font><br></span></div>= <div><b style=3D"color:rgb(51,51,255)"><span style=3D"color:rgb(0,0,0);font= -family:arial,sans-serif;font-size:13px;border-collapse:collapse">Mobile: += 91 976-788-8246</span></b><br></div></div></div></div></div></div></div></d= iv></div> --0000000000004e0e0d059b3c5466--