Skip to content

Commit 263230d

Browse files
authored
add pgtap test (#1170)
1 parent 039667b commit 263230d

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

nix/tests/expected/pgtap.out

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
begin;
2+
select plan(1);
3+
plan
4+
------
5+
1..1
6+
(1 row)
7+
8+
-- Run the tests.
9+
select pass( 'My test passed, w00t!' );
10+
pass
11+
------------------------------
12+
ok 1 - My test passed, w00t!
13+
(1 row)
14+
15+
-- Finish the tests and clean up.
16+
select * from finish();
17+
finish
18+
--------
19+
(0 rows)
20+
21+
rollback;

nix/tests/sql/pgtap.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
begin;
2+
3+
select plan(1);
4+
5+
-- Run the tests.
6+
select pass( 'My test passed, w00t!' );
7+
8+
-- Finish the tests and clean up.
9+
select * from finish();
10+
11+
rollback;

0 commit comments

Comments
 (0)