I'd go with run-time loading and if the module doesn't exist, just
"flunk" or "skip" or what Test.pm6 offers.

Here's a link that explains checking if a module is installed and
loading it if it is:

    https://rakudo.org/post/lexical-require-upgrade-info

Hope that helps!
  - Timo

On 11/10/2018 19:08, Fernando Santagata wrote:
> Hello,
>
> I wish to run some tests on one module of mine only if there's a
> certain third-party module available during installation.
> Before I concocted something horrid using try/catch in the INIT
> phaser, is there any gentle way to do this?
>
> Thanks!
>
> -- 
> Fernando Santagata

Reply via email to