rSpec-like test system for Perl
Latest commit 998f7e7 Dec 13, 2015 @andyjones andyjones Merge pull request #30 from jamhed/pr-pass-example-object-to-handler-…

FEATURE: pass an instance of example to handler

Test::Spec Travis CI Build Status

Test::Spec is a declarative specification‐style testing system for behavior‐ driven development (BDD) in Perl. The tests (a.k.a. examples) are named with strings instead of subroutine names, so your fingers will suffer less fatigue from underscore−itis, with the side benefit that the test reports are more legible.

This module is inspired by and borrows heavily from RSpec (, a BDD tool for the Ruby programming language.

See perldoc Test::Spec for syntax examples and usage information.


To install this module type the following:

perl Makefile.PL make make test make install


This module requires these other modules and libraries:

  • constant
  • List::Util
  • Package::Stash (>= 0.23)
  • Scalar::Util (XS version)
  • TAP::Parser
  • Test::Deep (>= 0.103)
  • Test::More
  • Test::Trap
  • Tie::IxHash


Philip Garrett

Source Code

The source code for Test::Spec lives at github:

Copyright and License

Copyright (c) 2011 by Informatics Corporation of America. Copyright (c) 2015 by Philip Garrett.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.