Re: Some newbie questions: http-client, logging.
Carl Gay <[email protected]> Sun, 31 Aug 2014 20:32:51 -0400
| Newsgroups | gmane.comp.lang.dylan.gwydion.devel |
|---|---|
| Message-ID | <CALekcH0+0xW=UbHfxTc+ay7fNpNAjs5S5KN0dP-KmQWeVtfUYQ@mail.gmail.com> |
--===============1489702910== Content-Type: multipart/alternative; boundary=047d7b3a838aa58e880501f624c1 --047d7b3a838aa58e880501f624c1 Content-Type: text/plain; charset=UTF-8 The testworks library provides a way to run unit tests and some simple benchmarking capabilities. The usual way is to export a separate foo-internals (or something) from the library under test. There's some doc here: http://opendylan.org/documentation/testworks/ Happy to answer questions. -Carl On Sun, Aug 31, 2014 at 8:03 PM, Piotr Klibert <[email protected]> wrote: > I forgot to ask, how do I run tests for something? I see tests in http > library and I'd like to be able to easily run them, is there any > support for this in OpenDylan? > > Is it possible to define tests inside a module and then run them > easily with other tests? When I write tests in separate module, am I > limited to public (exported) interface, or do I have access to > non-exported things in a module being tested? (I really like how > Racket handles this, see here: > http://blog.racket-lang.org/2012/06/submodules.html) > > Also, related thing: what is `define test` form - what it does and > where it's defined? Is it built in, or is this a macro from some > library? > > > Best regards, > Piotr Klibert > --047d7b3a838aa58e880501f624c1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">The testworks library provides a way to run unit tests and= some simple benchmarking capabilities. =C2=A0The usual way is to export a = separate foo-internals (or something) from the library under test. =C2=A0Th= ere's some doc here:=C2=A0<a href=3D"http://opendylan.org/documentation= /testworks/">http://opendylan.org/documentation/testworks/</a> =C2=A0Happy = to answer questions.<div> <br></div><div>-Carl<br><div class=3D"gmail_extra"><br><br><div class=3D"gm= ail_quote">On Sun, Aug 31, 2014 at 8:03 PM, Piotr Klibert <span dir=3D"ltr"= ><<a href=3D"mailto:[email protected]" target=3D"_blank">piotr.= [email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p= adding-left:1ex">I forgot to ask, how do I run tests for something? I see t= ests in http<br> library and I'd like to be able to easily run them, is there any<br> support for this in OpenDylan?<br> <br> Is it possible to define tests inside a module and then run them<br> easily with other tests? When I write tests in separate module, am I<br> limited to public (exported) interface, or do I have access to<br> non-exported things in a module being tested? (I really like how<br> Racket handles this, see here:<br> <a href=3D"http://blog.racket-lang.org/2012/06/submodules.html" target=3D"_= blank">http://blog.racket-lang.org/2012/06/submodules.html</a>)<br> <br> Also, related thing: what is `define test` form - what it does and<br> where it's defined? Is it built in, or is this a macro from some<br> library?<br> <br> <br> Best regards,<br> Piotr Klibert<br> </blockquote></div><br></div></div></div> --047d7b3a838aa58e880501f624c1-- --===============1489702910== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ hackers mailing list [email protected] https://lists.opendylan.org/mailman/listinfo/hackers --===============1489702910==--