[dancer-users] Testing documentation is lacking for newbs

Gert van Oss gertvanoss at me.com
Fri Dec 29 05:13:13 GMT 2017


Maybe this article can shine a light:

    http://advent.perldancer.org/2014/12

> On Dec 29, 2017, at 12:11 AM, Steve Dondley <sdondley at gmail.com> wrote:
> 
> 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 <mailto:cwallace at lodgingcompany.com>> wrote:
> On Thu, 28 Dec 2017 17:45:54 -0500
> Steve Dondley <sdondley at gmail.com <mailto: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/ <http://www.lodgingcompany.com/>
> OpenPGP Public Key ID: 0x262208A0
> +1 250-869-4931 ext. 6251
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm <mailto:dancer-users at dancer.pm>
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users <http://lists.preshweb.co.uk/mailman/listinfo/dancer-users>
> _______________________________________________
> 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/20171229/19760427/attachment.html>


More information about the dancer-users mailing list