Skip to content
Branch: master
Go to file
Code

Latest commit

Files

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

README.md

Test::Script

Test a script in Raku, checking its output

Installing

Use zef instal --deps-only . to install only dependencies. There are no non-Raku dependencies.

Running

    use Test::Script;

    output-is "script.p6", "hello: goodbye\n", "Two args ",
            args => ["--msg=goodbye", "hello"];

    output-like "script.p6, /"hello → goodbye"/, "Prints environment ",
            env => { "hello" => "goodbye" };
            
    variable-ok "script.p6", '$foo', "Variable exists and is set";
    variable-is "script.p6", '$foo', <bar baz>, "Variable exists and has value";

See also

See documentation as a POD.

License

This module will be licensed under the Artistic 2.0 License (the same as Raku itself).

About

Tests a script, white-box style

Resources

License

You can’t perform that action at this time.