[dancer-users] Testing documentation is lacking for newbs

Chad Wallace cwallace at lodgingcompany.com
Thu Dec 28 23:01:30 GMT 2017

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
OpenPGP Public Key ID: 0x262208A0
+1 250-869-4931 ext. 6251

More information about the dancer-users mailing list