ugexe / zef

Raku Module Management
Artistic License 2.0
206 stars 44 forks source link

Pass repository paths to test invocations with parameters instead of setting RAKULIB #542

Closed ugexe closed 9 months ago

ugexe commented 9 months ago

When a user has RAKULIB set and runs zef install ..., it will stage the repository before testing it. However, some of the test plugins would then change RAKULIB to set the includes path which was causing errors referencing $!repo-id and CompUnit::Repository::Spec. If we instead pass the includes path in with e.g. -I /some/path the aforementioned error doesn't occur.

This passes in the repository paths to raku test plugin with -I /some/path. It also deletes the prove plugin because it would be more difficult to make this change to, and as a bonus it should help encourage dog fooding the raku TAP module.

Fixes #540