TAP::Runner - Running tests with options
version 0.005
#!/usr/bin/perl use strict; use warnings; use TAP::Runner; use TAP::Formatter::HTML; TAP::Runner->new( { # harness_class => 'TAP::Harness::JUnit', harness_formatter => TAP::Formatter::HTML->new, tests => [ { file => 't/examples/test.t', alias => 'Test alias', args => [ '--option', 'option_value_1' ], options => [ { name => '--website', values => [ 'first.local', 'second.local', ], multiple => 0, }, { name => '--browser', values => [ 'firefox', 'chrome', ], multiple => 1, parallel => 1, }, ], }, { file => 't/examples/test.t', alias => 'Test alias 2', args => [ '--option', 'option_value_1' ], }, ], } )->run;
This module allows to run tests more flexible. Allows to use TAP::Harness, not just for unit tests.
Harness class to run the tests ( default TAP::Harness )
Custom formatter for Harness.
Default args that will pass to Harness object
Tests configs that should run. See TAP::Runner::Test
Create a new TAP::Runner object. tests atribute required
# Tests to run with runner my @tests = ( { file => 't/test.t' } ); # Tests auto coerce to L<TAP::Runner::Test> my $runner = TAP::Runner->new( tests => \@tests, );
Run the tests
Pavel R3VoLuT1OneR Zhytomirsky <r3volut1oner@gmail.com>
This software is copyright (c) 2012 by Pavel R3VoLuT1OneR Zhytomirsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install TAP::Runner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAP::Runner
CPAN shell
perl -MCPAN -e shell install TAP::Runner
For more information on module installation, please visit the detailed CPAN module installation guide.