Ingy döt Net > Test-Common-0.07 > Test::Common



Annotate this POD


View/Report Bugs
Module Version: 0.07   Source  


From the command line:

    > test-common help
    > test-common config
    > edit t/common.yaml
    > test-common update

Optionally, in your Module::Install based Makefile.PL:

    use inc::Module::Install;
    # Keep common tests up to date



As a module author, you maintain a configuration file called t/common.yaml, which contains information on all the common tests you want to use. These tests can come from Common::Test or any other module that distributes tests in the same way.



When you run:

    test-common config

you get an example t/common.yaml file. Edit it. There are comments inside exlaining the basics. For a given entry, like:

    - test: foo-bar.t


To rename a test, do:

    - test: foo-bar.t
      name: test-foo-bar.t


To create a package of your own common tests, put .t files into a share directory, so they get installed by make install, et al. Then other authors can add your test package to the 'sources' list of their t/common.yaml file.



The config file has a clean setting that allows you to control what:

    common-tests clean


    make clean
syntax highlighting: