Jump to content

Test::More: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add ref
features, with ref
Line 25: Line 25:


==History==
==History==
Introduced in 2001 to replace Test.pm, Test::More simplified the culture of testing in Perl leading to a proliferation of new testing modules and a strongly test driven community.
Introduced in 2001 to replace Test.pm, Test::More simplified the culture of testing in Perl leading to a proliferation of new testing modules and a strongly test driven community. Among its features were more comprehensive [[error message]]s, functions to test [[regular expression]]s, functions to test objects, and functions to test complex data structures.<ref name="Tregar">{{cite book|title=Writing Perl Modules for CPAN|last=Tregar|first=Sam|publisher=Apress|date=2002|isbn=9781430211525}}</ref>{{rp|115}} Tests that are known to fail under specific conditions or environments can be skipped.<ref name="Tregar" />{{rp|115}}


In January–March 2014 Michael Schwern transferred ownership of Test::More and related modules to Chad 'Exodist' Granum.<ref>http://blogs.perl.org/users/chad_exodist_granum/2014/03/testmore---new-maintainer-also-stop-version-checking.html</ref> On May 10, 2016 Exodist released version 1.302015<ref>https://metacpan.org/pod/release/EXODIST/Test-Simple-1.302015/lib/Test/More.pm</ref><ref>http://blogs.perl.org/users/chad_exodist_granum/2016/05/test2test-simple-released.html</ref> which included a complete refactor and partial rewrite of the internals. The new version includes major [[API]] updates and introduced several enhanced features. Extreme care was taken to preserve backwards compatibility for third party tools.{{Tone inline|date=January 2019}}
In January–March 2014 Michael Schwern transferred ownership of Test::More and related modules to Chad 'Exodist' Granum.<ref>http://blogs.perl.org/users/chad_exodist_granum/2014/03/testmore---new-maintainer-also-stop-version-checking.html</ref> On May 10, 2016 Exodist released version 1.302015<ref>https://metacpan.org/pod/release/EXODIST/Test-Simple-1.302015/lib/Test/More.pm</ref><ref>http://blogs.perl.org/users/chad_exodist_granum/2016/05/test2test-simple-released.html</ref> which included a complete refactor and partial rewrite of the internals. The new version includes major [[API]] updates and introduced several enhanced features. Extreme care was taken to preserve backwards compatibility for third party tools.{{Tone inline|date=January 2019}}

Revision as of 17:27, 15 August 2022

Test::More
Original author(s)Michael G Schwern
Developer(s)Chad 'Exodist' Granum
Initial releaseApril, 2001
Written inPerl
Operating systemCross-platform
Available inEnglish
TypeUnit testing module
LicenseDual-licensed - Artistic License and GPL
Websitehttp://search.cpan.org/~exodist/Test-Simple-1.302096/lib/Test/More.pm

Test::More is a unit testing module for Perl. Created and maintained by Michael G Schwern with help from Barrie Slaymaker, Tony Bowden, chromatic, Fergal Daly and perl-qa.

Test::More is the most popular Perl testing module, as of this 2010 about 80% of all CPAN distributions made use of it.[1]

History

Introduced in 2001 to replace Test.pm, Test::More simplified the culture of testing in Perl leading to a proliferation of new testing modules and a strongly test driven community. Among its features were more comprehensive error messages, functions to test regular expressions, functions to test objects, and functions to test complex data structures.[2]: 115  Tests that are known to fail under specific conditions or environments can be skipped.[2]: 115 

In January–March 2014 Michael Schwern transferred ownership of Test::More and related modules to Chad 'Exodist' Granum.[3] On May 10, 2016 Exodist released version 1.302015[4][5] which included a complete refactor and partial rewrite of the internals. The new version includes major API updates and introduced several enhanced features. Extreme care was taken to preserve backwards compatibility for third party tools.[tone]

Functionality

Test::More is not a framework but can be used in conjunction with other testing libraries via a shared Test::Builder object. As a result, Test::More provides the baseline testing functions leaving other libraries to implement more specific and sophisticated functionality. This removes what would otherwise be a development bottleneck and allows a rich ecosystem of specialized niche testing functions.

Test::More is not a complete testing framework. Rather, test programs written with Test::More output their results as TAP which can then either be interpreted by a human, or more usually run through a TAP parser such as Test::Harness.[6]: 424  It is this separation between test program and test result interpreter via a common protocol which allows Perl programmers to develop so many different testing modules and use them in combination. Additionally, the TAP output can be stored and reinterpreted later providing a historical record of test results.

References

  1. ^ https://metacpan.org/pod/Test::Most
  2. ^ a b Tregar, Sam (2002). Writing Perl Modules for CPAN. Apress. ISBN 9781430211525.
  3. ^ http://blogs.perl.org/users/chad_exodist_granum/2014/03/testmore---new-maintainer-also-stop-version-checking.html
  4. ^ https://metacpan.org/pod/release/EXODIST/Test-Simple-1.302015/lib/Test/More.pm
  5. ^ http://blogs.perl.org/users/chad_exodist_granum/2016/05/test2test-simple-released.html
  6. ^ Conway, Damian (2005). Perl Best Practices. O'Reilly Media.

External links