| 1 |
Source: libtest-base-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Damyan Ivanov <[email protected]>, |
| 4 |
gregor herrmann <[email protected]>, |
| 5 |
Ansgar Burchardt <[email protected]>, |
| 6 |
Joenio Costa <[email protected]> |
| 7 |
Section: perl |
| 8 |
Testsuite: autopkgtest-pkg-perl |
| 9 |
Priority: optional |
| 10 |
Build-Depends: debhelper-compat (= 13) |
| 11 |
# optionally used in test but causes circular dependeny YAML -> Test::YAML -> Test::Base |
| 12 |
# libyaml-perl |
| 13 |
Build-Depends-Indep: libalgorithm-diff-perl <!nocheck>, |
| 14 |
libspiffy-perl <!nocheck>, |
| 15 |
libtest-deep-perl <!nocheck>, |
| 16 |
libtest-simple-perl <!nocheck>, |
| 17 |
libtext-diff-perl <!nocheck>, |
| 18 |
perl |
| 19 |
Standards-Version: 4.6.2 |
| 20 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtest-base-perl |
| 21 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtest-base-perl.git |
| 22 |
Homepage: https://metacpan.org/release/Test-Base |
| 23 |
Rules-Requires-Root: no |
| 24 |
|
| 25 |
Package: libtest-base-perl |
| 26 |
Architecture: all |
| 27 |
Depends: ${misc:Depends}, |
| 28 |
${perl:Depends}, |
| 29 |
libalgorithm-diff-perl, |
| 30 |
libspiffy-perl, |
| 31 |
libtext-diff-perl |
| 32 |
Recommends: libtest-deep-perl, |
| 33 |
libyaml-perl |
| 34 |
Description: data driven testing framework for Perl |
| 35 |
Testing is usually the ugly part of Perl module authoring. Perl gives you a |
| 36 |
standard way to run tests with Test::Harness, and basic testing primitives |
| 37 |
with Test::More. After that you are pretty much on your own to develop a |
| 38 |
testing framework and philosophy. Test::More encourages you to make your own |
| 39 |
framework by subclassing Test::Builder, but that is not trivial. |
| 40 |
. |
| 41 |
Test::Base gives you a way to write your own test framework base class that is |
| 42 |
trivial. In fact it is as simple as two lines: |
| 43 |
package MyTestFramework; |
| 44 |
use Test::Base -Base; |
| 45 |
. |
| 46 |
A module called MyTestFramework.pm containing those two lines, will give all |
| 47 |
the power of Test::More and all the power of Test::Base to every test file |
| 48 |
that uses it. As you build up the capabilities of MyTestFramework, your tests |
| 49 |
will have all of that power as well. |
| 50 |
. |
| 51 |
MyTestFramework becomes a place for you to put all of your reusable testing |
| 52 |
bits. As you write tests, you will see patterns and duplication, and you can |
| 53 |
"upstream" them into MyTestFramework. Of course, you don't have to subclass |
| 54 |
Test::Base at all. You can use it directly in many applications, including |
| 55 |
everywhere you would use Test::More. |
| 56 |
. |
| 57 |
Test::Base concentrates on offering reusable data driven patterns, so that you |
| 58 |
can write tests with a minimum of code. At the heart of all testing you have |
| 59 |
inputs, processes and expected outputs. Test::Base provides some clean ways |
| 60 |
for you to express your input and expected output data, so you can spend your |
| 61 |
time focusing on that rather than your code scaffolding. |