Lines Matching full:tests
12 TAP::Parser::Scheduler - Schedule tests during parallel testing
34 my $sched = TAP::Parser::Scheduler->new(tests => \@tests);
36 tests => [ ['t/test_name.t','Test Description'], ... ],
40 Given 'tests' and optional 'rules' as input, returns a new
41 C<TAP::Parser::Scheduler> object. Each member of C<@tests> should be either a
46 The optional C<rules> attribute provides direction on which tests should be run
58 to express simple rules like "run all tests in sequence" or "run all tests in
59 parallel except these five tests.". However, the rules structure also supports
76 # All tests be run in parallel (the default rule)
79 # Run all tests in sequence, except those starting with "p"
82 # Run all tests in parallel, except those starting with "p"
90 # Run some startup tests in sequence, then some parallel tests then some
91 # teardown tests in sequence.
105 =item * By default, all tests are eligible to be run in parallel. Specifying any of your own rules removes this one.
111 =item * The existence of a rule does not imply selecting a test. You must still specify the tests to run.
113 =item * Specifying a rule to allow tests to run in parallel does not make the run in parallel. You still need specify the number of parallel C<jobs> in your Harness object.
135 my $tests = delete $args{tests} || croak "Need a 'tests' argument";
145 $self->_set_rules( $rules, $tests );
162 my ( $self, $rules, $tests ) = @_;
164 # Convert all incoming tests to job objects.
166 my @tests = map { TAP::Parser::Scheduler::Job->new(@$_) }
167 map { 'ARRAY' eq ref $_ ? $_ : [ $_, $_ ] } @$tests;
168 my $schedule = $self->_rule_clause( $rules, \@tests );
170 # If any tests are left add them as a sequential block at the end of
172 $schedule = [ [ $schedule, @tests ] ] if @tests;
178 my ( $self, $rule, $tests ) = @_;
200 ? $self->_rule_clause( $_, $tests )
201 : $self->_expand( $_, $tests )
265 my ( $self, $name, $tests ) = @_;
271 for ( my $ti = 0; $ti < @$tests; $ti++ ) {
272 if ( $tests->[$ti]->filename =~ $pattern ) {
273 push @match, splice @$tests, $ti, 1;
285 Get a list of all remaining tests.
381 my @tests = (qw{
388 tests => \@tests,