| 1 | # Contributing on pgBadger |
| 2 | |
| 3 | Thanks for your attention on pgBadger ! You need Perl Module JSON::XS |
| 4 | to run the full test suite. You can install it on a Debian like system |
| 5 | using: |
| 6 | |
| 7 | sudo apt-get install libjson-xs-perl |
| 8 | |
| 9 | or in RPM like system using: |
| 10 | |
| 11 | sudo yum install perl-JSON-XS |
| 12 | |
| 13 | pgBadger has a TAP compatible test suite executed by `prove`: |
| 14 | |
| 15 | $ prove |
| 16 | t/01_lint.t ......... ok |
| 17 | t/02_basics.t ....... ok |
| 18 | t/03_consistency.t .. ok |
| 19 | All tests successful. |
| 20 | Files=3, Tests=13, 6 wallclock secs ( 0.01 usr 0.01 sys + 5.31 cusr 0.16 csys = 5.49 CPU) |
| 21 | Result: PASS |
| 22 | $ |
| 23 | |
| 24 | or if you prefer to run test manually: |
| 25 | |
| 26 | $ perl Makefile.PL && make test |
| 27 | Checking if your kit is complete... |
| 28 | Looks good |
| 29 | Generating a Unix-style Makefile |
| 30 | Writing Makefile for pgBadger |
| 31 | Writing MYMETA.yml and MYMETA.json |
| 32 | cp pgbadger blib/script/pgbadger |
| 33 | "/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pgbadger |
| 34 | PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t |
| 35 | t/01_lint.t ......... ok |
| 36 | t/02_basics.t ....... ok |
| 37 | t/03_consistency.t .. ok |
| 38 | All tests successful. |
| 39 | Files=3, Tests=13, 6 wallclock secs ( 0.03 usr 0.00 sys + 5.39 cusr 0.14 csys = 5.56 CPU) |
| 40 | Result: PASS |
| 41 | $ make clean && rm Makefile.old |
| 42 | |
| 43 | Please contribute a regression test when you fix a bug or add a feature. Thanks! |