Testing for "lib" exercises

I just finished the Lasagna exercise. The track documentation and the HELP.md file accompanying the exercise both recommend prove6 . for testing, but it appears the project structure with /lib and /t directories requires an extra flag, prove6 --lib ., or the following error is generated:

===SORRY!=== Error while compiling /mnt/d/Projects/exercism/raku/lasagna/t/lasagna.rakutest
Could not find Lasagna in:
    /home/eric/.raku
    /home/eric/rakudo/share/perl6/site
    /home/eric/rakudo/share/perl6/vendor
    /home/eric/rakudo/share/perl6/core
    CompUnit::Repository::AbsolutePath<2677016514520>
    CompUnit::Repository::NQP<2677107728912>
    CompUnit::Repository::Perl5<2677107728952>
at /mnt/d/Projects/exercism/raku/lasagna/t/lasagna.rakutest:4
t/lasagna.rakutest .. Dubious, test returned 1
No subtests run

Test Summary Report
-------------------
t/lasagna.rakutest (Wstat: 256 Tests: 0 Failed: 0)
Non-zero exit status: 1
  Parse errors: No plan found in TAP output

Iā€™d recommend adding some mention of this flag to the docs.

Ah, yes. This doc was written a very long time ago! I had written the concept exercises with the more traditional directory structure but have not updated this. I will have a look.

2 Likes