Test::Auto::Plugin
Test-Auto Plugin Class
package Test::Auto::Plugin::Example; use Test::More; use parent 'Test::Auto::Plugin'; sub tests { my ($self, @args) = @_; subtest "testing example plugin", fun () { ok 1; }; return $self; } 1;
This package provides an abstract base class for creating Test::Auto plugins.
This package uses type constraints from:
Data::Object::Library
This package has the following attributes:
subtests(InstanceOf["Test::Auto::Subtests"])
This attribute is read-only, accepts (InstanceOf["Test::Auto::Subtests"]) values, and is required.
(InstanceOf["Test::Auto::Subtests"])
This package implements the following methods:
tests(Any @args) : Object
This method is meant to be overridden by the superclass, and should perform specialized subtests. While not required, ideally this method should return its invocant.
package main; use Test::Auto; use Test::Auto::Parser; use Test::Auto::Subtests; my $test = Test::Auto->new( 't/Test_Auto_Plugin.t' ); my $parser = Test::Auto::Parser->new( source => $test ); my $subtests = Test::Auto::Subtests->new( parser => $parser ); # Test::Auto::Plugin::ShortDescription my $example = $subtests->plugin('ShortDescription'); $example->tests(length => 200);
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Issues
To install Test::Auto, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Auto
CPAN shell
perl -MCPAN -e shell install Test::Auto
For more information on module installation, please visit the detailed CPAN module installation guide.