Skip to content

gsteph/perl-tdd-runner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perl TDD Runner

This is a tool that runs your Perl tests continuouslly when files change, helping you to TDD. Differently from provewatch, the provetdd holds all loaded modules in memory, and only reload what it needed, making it exponentially faster to run when testing a huge Perl codebase.

How to use

Install it with cpan install Test::Tdd and then:

provetdd t/path/to/Test.t

You can specify paths to add to INC and specific paths to watch

provetdd -Ilib --watch lib/path,lib/path2 t/path/to/Test.t

You can all run all tests in a folder

provetdd t/

How to install it from source

First install cpanm and Dist::Zilla

sudo cpan install App::cpanminus Dist::Zilla

If it fails you can force it

sudo cpan

> force install Dist::Zilla

Then install the dzil deps:

dzil authordeps --missing | sudo cpanm

Now you can install it locally

sudo dzil install

For development

You can run the examples with:

export PATH="$(pwd)/bin:$PATH"
export PERL5LIB="$PERL5LIB:$(pwd)/lib"

cd example
provetdd --watch lib t/Test.t

Releases

No releases published

Packages

No packages published

Languages

  • Perl 98.7%
  • Other 1.3%