Reputation: 39158
I have test failures. I want to see the details and experiment and perhaps debug, so I unpack the module dist. Now I expect to find some analogue to Setup.hs, setup.py, Build.PL, Rakefile etc., but there are no executables. How do you manually build and test verbosely?
Upvotes: 1
Views: 122
Reputation: 11168
First I'd check more into zef
zef install module::name
zef test /path/to/module
zef --help
zef
comes with Rakudo-Star.
If you make a change and want to reinstall the module with the change and it doesn't want to install it, you can "force" it:
zef install --force-install ./relative/path/to/module
Or, if you bump the version in META6.json
, you don't have to force it:
zef install ./relative/path/to/module
To test a module, you can use prove
to run all of the tests in its test directory:
prove --exec=perl6 -r t/
To run an individual test, simply use perl6
:
perl6 t/test.t
You also might be interested in 6pm
, but I don't have enough experience with it to comment on it at this time.
Upvotes: 2