© J.J. Merelo 2019
J. MereloPerl 6 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4956-7_13

13. Testing Your Modules and Scripts

If It’s not Tested, It’s Broken
J. J. Merelo1 
(1)
Granada, Spain
 

Testing is so fundamental for software development nowadays that most languages include at least some basic testing capability in their standard libraries. This usually comes in the form of unit testing libraries: unit tests check how individual functions behave, what they return, and how they change the global or local state.

In the case of Perl 6, the standard testing library is simply called Test.

The Standard Testing Module: Test

Test is a standard module, but it is not part of the core, so you need to use it to incorporate it into your tests. It’s ...

Get Perl 6 Quick Syntax Reference: A Pocket Guide to the Language, the Core Modules, and the Community now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.