Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 History  





2 Functionality  





3 References  





4 External links  














Test::More







Add links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


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
Websitehttps://metacpan.org/pod/Test::More

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[edit]

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.

In January–March 2014 Michael Schwern transferred ownership of Test::More and related modules to Chad 'Exodist' Granum.[2] On May 10, 2016 Exodist released version 1.302015[3][4] 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[edit]

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.[5]: 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.

Among its features are more comprehensive error messages, functions to test regular expressions, functions to test objects, and functions to test complex data structures.[6]: 115  It can be used to compare values, such as a computed value to an expected value, or that a value is within an expected range.[7]: 217  The number of tests to be executed is listed in the test script.[8]: 202 

Tests that are known to fail under specific conditions or environments can be skipped.[6]: 115  This may occur if a system on which the test is executed lacks the capability to execute the tested function, or if the test is written in advance of the code.[7]: 218 

The module intercepts standard output from the Perl script to execute the tests.[9]: 31 

References[edit]

  1. ^ Poe, Curtis. "Test::Most". CPAN.
  • ^ Granum, Chad (14 March 2014). "Test::More - New Maintainer, Also stop version checking!".
  • ^ "Test::More". CPAN.
  • ^ Granum, Chad (9 May 2016). "Test2+Test-Simple released!".
  • ^ Conway, Damian (2005). Perl Best Practices. O'Reilly Media. ISBN 9780596001735.
  • ^ a b Tregar, Sam (2002). Writing Perl Modules for CPAN. Apress. ISBN 9781430211525.
  • ^ a b Cozens, Simon (2005). Advanced Perl Programming. O'Reilly Media. ISBN 9781449378912.
  • ^ Galbraith, Patrick (2009). Developing Web Applications with Apache, MySQL, Memcached, and Perl. Wiley. ISBN 9780470538326.
  • ^ Diment, Kieren; Trout, Matt (2009). The Definitive Guide to Catalyst. Apress. ISBN 9781430223665.
  • External links[edit]


  • t
  • e

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Test::More&oldid=1150294589"

    Categories: 
    Unit testing frameworks
    Cross-platform software
    Perl
    Software using the Artistic license
    Computer programming tool stubs
    Hidden categories: 
    Wikipedia articles with style issues from January 2019
    All articles with style issues
    All stub articles
     



    This page was last edited on 17 April 2023, at 09:23 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki