June 2014 Archives

How to Run a Single Test via Dist::Zilla

Last week I was working on a distribution which includes some XS and also uses Dist::Zilla. I needed to edit a single test, but didn't want to run the entire test suite after every edit. It wasn't immediately clear to me how to do this via "dzil test". I asked in #dzil and within a couple of minutes I got some excellent advice in the form of:

dzil run prove -lv t/my-test.t

If there is no XS in your distribution you can skip the build process and get an even faster test run:

dzil run --nobuild prove -lv t/my-test.t

Many thanks to ="https://m…

About Olaf Alders

user-pic I hack on MetaCPAN, CPAN modules and other fun stuff.