Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fT15U-0001Qh-6X for pgadmin-hackers@arkaria.postgresql.org; Wed, 13 Jun 2018 08:25:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fT15S-0003eV-N6 for pgadmin-hackers@arkaria.postgresql.org; Wed, 13 Jun 2018 08:25:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fT15S-0003eL-H4 for pgadmin-hackers@lists.postgresql.org; Wed, 13 Jun 2018 08:25:02 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fT15O-0008Ha-2p for pgadmin-hackers@postgresql.org; Wed, 13 Jun 2018 08:25:01 +0000 Received: by mail-wr0-x244.google.com with SMTP id e18-v6so1746927wrs.5 for ; Wed, 13 Jun 2018 01:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3x2g9//tx+giE7axAfREwnjKdBp8lXNxC8xpuCT+b8k=; b=Cz1OfIaEaEc2yq/IXYgJLNXxvmdz1wLPBIUzYKJ9ykQz6zAXjJQnZt6qNBIO5OPlx/ EF7s6kn2UOgS9Zu5bSKwRRwOkgDCXJncy6FpaZUc+leFLXe7s2WWtNxD4eiEhEYhaPUT RwWgXU8HXIxf4v/DOHudxndAIfTuNQc+k5c7gXpAOEuE9qzCiBBbBkAHpSKXt8d+sYnh smjh5OFdHHKmdVokQDxIuSKZ2ggdTxXs6fkeXx4jYhcUETrEygvb5zLtZ929XCgcoskj 1VJ2mtHIGMbUCxTRssywnaFTr2TEK/KR4jLfRWy7YZikFIyPcOb1hEL38r8TpsRdcpAZ OJXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3x2g9//tx+giE7axAfREwnjKdBp8lXNxC8xpuCT+b8k=; b=L/fLepMLICWog0borxXlBuk/599ByXUQmHLzarXsi2a8S6af9bKdFETDAipQcmnDxC QF6MXpGVjtxA9bEJ8bETpzXj0uaJDFu62ZkvkqJo+RsR9bKy3tHThnzVNznsYePJNRiM nuxUKXOZJX8Qrk/RQwqydwUHq3Q68jYhmLspVRNnU7U3793Dt77uSKGxwz+9kDre+0g4 IaN34XVvjsEcZp/vNlwjlBAEZKDBjtqPSbF5uXh+nKDAtDGnus2qA0JiN4cKc56Qj7oC 6j4QLweU57WQfAyZ1YrmGKr9iJzWwxzZ2QHTgW+duc8X17UpaqaOsUeHqGRTFr/A4m6s 9gHw== X-Gm-Message-State: APt69E3mYJac4wqciG2tt4kS6qSXSedfItN6GmcWgbpzdrJX/8224EpY AHYCzlnu6F8xMFobre35nO6KGCNHKNqh4IYp06qtubwa X-Google-Smtp-Source: ADUXVKLTQLvA1QYaQKsAyqRAMKRmiAAr+hXNH71oQ4zb7tQtFXioA9r3vPk0cjlGe7FPixhQfqN5TUSFm8mEf5hfHO8= X-Received: by 2002:adf:e590:: with SMTP id l16-v6mr3068854wrm.190.1528878296799; Wed, 13 Jun 2018 01:24:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:2907:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 01:24:56 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Wed, 13 Jun 2018 09:24:56 +0100 Message-ID: Subject: Re: [pgadmin4][Patch]: Support for create multiple test classes in one test file To: Joao De Almeida Pereira Cc: Akshay Joshi , pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000c924bc056e81b730" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000c924bc056e81b730 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 12, 2018 at 2:42 PM, Joao De Almeida Pereira < jdealmeidapereira@pivotal.io> wrote: > Hello Hackers, > Instead of doing this change and include more test harnessing to the setu= p > we have, do you think we can try to push to get pytest into the code base > and all these features will come by default? > Agreed. > Thanks > Joao > =E2=80=8B > > On Tue, Jun 12, 2018 at 9:30 AM Akshay Joshi < > akshay.joshi@enterprisedb.com> wrote: > >> Hi Hackers, >> >> Attached is the patch to create multiple test classes in one test file. >> >> For example: I have one test file *test_feature.py *where I wrote >> multiple test classes >> class TestX(BaseTestGenerator): >> class TestY(BaseTestGenerator): >> class TestZ(BaseTestGenerator): >> >> So with current implementation it will run the test cases for *TestZ* >> class. >> >> -- >> *Akshay Joshi* >> >> *Sr. Software Architect * >> >> >> >> *Phone: +91 20-3058-9517Mobile: +91 976-788-8246* >> > --=20 Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --000000000000c924bc056e81b730 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Jun 12, 2018 at 2:42 PM, Joao De Almeida Pereira <j= dealmeidapereira@pivotal.io> wrote:

Hello Hackers,
Inst= ead of doing this change and include more test harnessing to the setup we h= ave, do you think we can try to push to get pytest = into the code base and all these features will come by default?

Agreed.

=C2=A0

Thanks
Joao

=E2=80=8B

On Tue, Jun 12, 201= 8 at 9:30 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
=
Hi Hackers,=C2=A0
Attached is the patch to create multiple test classes in on= e test file.=C2=A0=C2=A0

For example: I have one t= est file test_feature.py where I wrote multiple test classes
=C2=A0 =C2=A0=C2=A0class TestX(BaseTestGenerator):
<= span style=3D"color:rgb(0,0,0);font-family:Menlo;font-size:9pt">=C2=A0 class=C2=A0TestY(BaseTestGenerator):
<= span style=3D"background-color:rgb(255,255,255);text-decoration-style:initi= al;text-decoration-color:initial">=C2=A0 class=C2=A0TestZ= (BaseTestGenerator):

So with current implementation it will run the test ca= ses for TestZ class.

--
Akshay Joshi
Sr. Software Archit= ect

=


--
=
Dave Page=
Blog: http://= pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprised= b.com
The Enterprise PostgreSQL Company
--000000000000c924bc056e81b730--