Re: Writing our own modules in Test2
[email protected] (Chad Granum) Fri, 24 Jun 2016 07:43:07 -0700
| Newsgroups | perl.qa |
|---|---|
| Message-ID | <CAJFr3kt0qNbQEkALzHv4qUOo=xJ7fCOD0cMqgGU9-najeMtJHg@mail.gmail.com> |
--001a114dddf05af92f053607306a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The pod for Test2.pm explains the namespaces. They are intended for all new tools/plugins/events/etc. Test2::Xxx should be for extentions to the framework. Test2::Tools::* and test2::Plugins etc are open to anyone. On Jun 24, 2016 7:39 AM, "Andy Lester" <[email protected]> wrote: > > On Jun 24, 2016, at 12:46 AM, Chad Granum <[email protected]> wrote: > > Is the intent that when people will create them as > Test2::Tools::Whatever? Sort of like Perl::Critic::Policy::* is done? O= r > are we still staying as Test::Whatever? > > > What about naming? Test2::Tools::Whatever? Or do we see the Test2::Tool= s > namespace being only for =E2=80=9Cofficial=E2=80=9D tools? > > I see three options for third parties: > > * Test2::Tools::Whatever > * Test2::Whatever > * Test::Whatever > > My ultimate goal here is to create a batch of convenience test methods an= d > also have them stand as an example of a standalone third party module. > > > -- > Andy Lester =3D> www.petdance.com > > --001a114dddf05af92f053607306a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">The pod for Test2.pm explains the namespaces. They are inten= ded for all new tools/plugins/events/etc. Test2::Xxx should be for extentio= ns to the framework. Test2::Tools::* and test2::Plugins etc are open to any= one.</p> <div class=3D"gmail_quote">On Jun 24, 2016 7:39 AM, "Andy Lester"= <<a href=3D"mailto:[email protected]">[email protected]</a>> wrote:<= br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin:0= 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-w= rap:break-word"><br><div><blockquote type=3D"cite"><div>On Jun 24, 2016, at= 12:46 AM, Chad Granum <<a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a>> wrote:</div><br><div><span style=3D"font= -family:Georgia;font-size:14px;font-style:normal;font-variant:normal;font-w= eight:normal;letter-spacing:normal;line-height:normal;text-align:start;text= -indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:n= one;display:inline!important">Is the intent that when people will create th= em as Test2::Tools::Whatever?=C2=A0 Sort of like Perl::Critic::Policy::* is= done?=C2=A0 Or are we still staying as Test::Whatever?</span><br style=3D"= font-family:Georgia;font-size:14px;font-style:normal;font-variant:normal;fo= nt-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;= text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"></= div></blockquote></div><div><br></div><div>What about naming?=C2=A0 Test2::= Tools::Whatever?=C2=A0 Or do we see the Test2::Tools namespace being only f= or =E2=80=9Cofficial=E2=80=9D tools?</div><div><br></div><div>I see three o= ptions for third parties:</div><div><br></div><div>* Test2::Tools::Whatever= </div><div>* Test2::Whatever</div><div>* Test::Whatever</div><div><br></div= ><div>My ultimate goal here is to create a batch of convenience test method= s and also have them stand as an example of a standalone third party module= .</div><div><br></div><br><div> --<br>Andy Lester =3D>=C2=A0<a href=3D"http://www.petdance.com" target= =3D"_blank">www.petdance.com</a> </div> <br></div></blockquote></div> --001a114dddf05af92f053607306a--