]> granicus.if.org Git - pgbadger/commitdiff
Add HACKING to document tests
authorÉtienne BERSAC <etienne.bersac@dalibo.com>
Thu, 7 Sep 2017 14:32:49 +0000 (16:32 +0200)
committerÉtienne BERSAC <etienne.bersac@dalibo.com>
Fri, 8 Sep 2017 06:48:56 +0000 (08:48 +0200)
HACKING.md [new file with mode: 0644]

diff --git a/HACKING.md b/HACKING.md
new file mode 100644 (file)
index 0000000..8c55c5c
--- /dev/null
@@ -0,0 +1,18 @@
+# Contributing on pgBadger
+
+Thanks for your attention on pgBadger !
+
+pgBadger has a TAP compatible test suite executed by `prove(1)` on CI. You can
+write tests in many language including perl and bash.
+
+    $ apt install bats
+    ...
+    $ prove
+    t/basics.t .. ok 
+    t/syntax.t .. ok 
+    All tests successful.
+    Files=2, Tests=4,  2 wallclock secs ( 0.02 usr  0.00 sys +  2.38 cusr  0.04 csys =  2.44 CPU)
+    Result: PASS
+    $
+
+Please contribute a regression test when you fix a bug or add a feature. Thanks!