Test::Most

Most commonly needed test functions and features
Download

Test::Most Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Curtis Poe
  • Publisher web site:
  • http://search.cpan.org/~ovid/

Test::Most Tags


Test::Most Description

Test::Most is a Perl module that exists to reduce boilerplate and to make your testing life easier. We provide "one stop shopping" for most commonly used testing modules. In fact, we often require the latest versions so that you get bug fixes through Test::Most and don't have to keep upgrading these modules separately.This module provides you with the most commonly used testing functions, along with automatically turning on strict and warning and gives you a bit more fine-grained control over your test suite. use Test::Most tests => 4, 'die'; ok 1, 'Normal calls to ok() should succeed'; is 2, 2, '... as should all passing tests'; eq_or_diff , , '... but failing tests should die'; ok 4, '... will never get to here';As you can see, the eq_or_diff test will fail. Because 'die' is in the import list, the test program will halt at that point.If you do not want strict and warnings enabled, you must explicitly disable them. Thus, you must be explicit about what you want and no longer need to worry about accidentally forgetting them. use Test::Most tests => 4; no strict; no warnings;SYNOPSISInstead of this: use strict; use warnings; use Test::Exception 0.88; use Test::Differences 0.500; use Test::Deep 0.106; use Test::Warn 0.11; use Test::More tests => 42;You type this: use Test::Most tests => 42;Product's homepage


Test::Most Related Software