[dancer-users] Testing documentation is lacking for newbs

Steve Dondley sdondley at gmail.com
Thu Dec 28 23:11:26 GMT 2017


Ugh. I knew that. Slightly delirious from being sick. I’ll add to man page
for those equally clueless.
On Thu, Dec 28, 2017 at 6:02 PM Chad Wallace <cwallace at lodgingcompany.com>
wrote:

> On Thu, 28 Dec 2017 17:45:54 -0500
> Steve Dondley <sdondley at gmail.com> wrote:
>
> > So I'm trying to figure out how to do testing Dancer 2 apps. For
> > someone like me, relatively new to testing, it's unclear just where
> > these tests should do and how to execute them. I read the docs but
> > they didn't address my questions.
> >
> > With the default skeleton, I see there are two tests in t/ folder.
> > They aren't executable nor do they have the shebang line. So I'm left
> > scratching my head as to what to do with these tests and what they
> > are used for and whether I should bother to modify them and add more
> > tests to them. I tried making t/001_base.t executable and I just get
> > an error that it couldn't load my module.
>
> From the app dir, run this command:
>
> prove -lr t
>
> Or to run a single test:
>
> prove -l t/000-base.t
>
>
> --
>
> C. Chad Wallace, B.Sc.
> The Lodging Company
> http://www.lodgingcompany.com/
> OpenPGP Public Key ID: 0x262208A0
> +1 250-869-4931 ext. 6251
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20171228/5c3754af/attachment.html>


More information about the dancer-users mailing list