Re: How to Port https://metacpan.org/module/Test::Run::Plugin::TrimDisplayedFilenames to TAP::Harness

[email protected] (Leon Timmermans) Tue, 26 Nov 2013 14:00:30 +0100
Newsgroups perl.qa
Message-ID <CAHhgV8iHw06feEWdpcbNxq+vU0GChcX6tSP9yGmJZ8FTxC7YzA@mail.gmail.com>
On Fri, Sep 20, 2013 at 8:29 PM, Shlomi Fish <[email protected]> wrote:

> I read that post and have one question: can I easily create several
> specialised
> plugins and have them all apply their modified behaviours to the relevant
> part
> of TAP::Harness? Seems like I can only set up a single subclass of the
> relevant
> parts in each plugin (like for the formatter or whatever). Or am I missing
> something?
>
> I'm asking because with Test::Run, I can set up more than one plugin for
> each
> class and I'm wondering how to do that with TAP::Harness.
>

I think you may want to write a set of subclasses with the appropriate
hooks (e.g. a TAP::Formatter::Extensible), and use that to write plugins
for.

Leon