Skip to content
master
Go to file
Code
This branch is 2 commits ahead of perlpilot:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
t
 
 
 
 
 
 
 
 
 
 

README.pod

Test::Class

Some people at work are enamored of Perl's Test::Class, so I thought I'd have a look at it. This module is an attempt to recreate much of the same functionality for Raku.

There are no docs yet. See the programs in examples/ for how to use it.

Random things that come to mind though:

  • this Test::Class is a role that you can compose into your own classes

  • Instead of running Test::Class.run-tests, you execute YourClass.run-tests or Test::Class.run-tests(YourClass)

  • where in Perl you'd say "sub foo : Test", here you'd say "method foo is test"

  • instead of ": Test(no_plan)", you say "is test(*)" or "is tests"

  • this Test::Class will also export the Test routines so that you don't have to (i.e., in Perl you'd need to say "use Test::Class; use Test::More;" if you wanted to use the is(), ok(), etc. routines. For this version of Test::Class, you just say "use Test::Class;" and you've automatically got those routines in your lexical scope)

About

similar to Perl's Test::Class

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.