Skip to content
schwern edited this page Mar 6, 2013 · 10 revisions

How To Change This Document And Our Style

Checking and Correcting Style

  • Anyone can correct the code to better match style.
  • Syntax style is codified in .perltidy.
  • As much coding style as possible is codified in .perlcritic
  • Running ./Build tidy and ./Build critic will run perltidy and perlcritic respectively.

Testing

  • t/00_TEST_TEMPLATE.t is a template for writing tests. Copy it to make new tests.
  • Tests should use Test::Most.
  • Tests should use perl5i::latest, not perl5i::2. This will make creating a new major version easier.
  • Tests should have a #! line.
  • Each test file should test a single method or group of related methods, or a single, complicated bug.
  • Tests which require complicated set up should go in their own test file.
  • Sets of related test files should go into a sub-directory.
  • perl5i specific testing libraries should go into t/lib
Clone this wiki locally