Test2::Spy Enable by setting -MTest2::Spy in your PERL5OPT when using cpanm. PERL5OPT=-MTest2::Spy cpanm --test-only Data::Printer Test2::Spy is copyright (c) Joel Berger 2017, it is released under the same terms as Perl 5