Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added
do_tap()
, which finds test functions and runs them, allowi…
…ng tap tests to be embedded in functions and then executed all at once. * Added `runtests()`, which introduces xUnit-style test running, for those who prefer to put their tests in a slew of test functions and then run one function to run all of the test functions (plus startup, setup, teardown, and shutdown tests). * Added `findfuncs()`, which is used by `do_tap()` to find the functions to execute. * The `col_type_is()` function now requires that the type be visible in the search path when it is called without a schema argument. * The `plan()` function no longer resets the `client_min_messages` setting to its default value, but leaves it set to whatever it was set to before the function was called. * Fixed a typo in the documentation of the short version of the `--version` option to `pg_prove`, which is `-V`, not `-v`.
- Loading branch information
Showing
11 changed files
with
576 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
\unset ECHO | ||
1..26 | ||
ok 1 - findfuncs(public, ^test) should work | ||
ok 2 - findfuncs(^test) should work | ||
# public."test ident"() | ||
ok 3 - ident | ||
ok 4 - ident 2 | ||
# public.test_this() | ||
ok 5 - simple pass | ||
ok 6 - another simple pass | ||
# public.testplpgsql() | ||
ok 7 - plpgsql simple | ||
ok 8 - plpgsql simple 2 | ||
# public."test ident"() | ||
ok 9 - ident | ||
ok 10 - ident 2 | ||
# public.test_this() | ||
ok 11 - simple pass | ||
ok 12 - another simple pass | ||
# public.testplpgsql() | ||
ok 13 - plpgsql simple | ||
ok 14 - plpgsql simple 2 | ||
# public."test ident"() | ||
ok 15 - ident | ||
ok 16 - ident 2 | ||
# public.test_this() | ||
ok 17 - simple pass | ||
ok 18 - another simple pass | ||
# public.testplpgsql() | ||
ok 19 - plpgsql simple | ||
ok 20 - plpgsql simple 2 | ||
# public."test ident"() | ||
ok 21 - ident | ||
ok 22 - ident 2 | ||
# public.test_this() | ||
ok 23 - simple pass | ||
ok 24 - another simple pass | ||
# public.testplpgsql() | ||
ok 25 - plpgsql simple | ||
ok 26 - plpgsql simple 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
\unset ECHO | ||
ok 1 - starting up | ||
ok 2 - starting up some more | ||
# whatever."test ident"() | ||
ok 3 - setup | ||
ok 4 - Should be nothing in the test table | ||
ok 5 - setup more | ||
ok 6 - ident | ||
ok 7 - ident 2 | ||
ok 8 - teardown | ||
ok 9 - teardown more | ||
# whatever.test_this() | ||
ok 10 - setup | ||
ok 11 - Should be nothing in the test table | ||
ok 12 - setup more | ||
ok 13 - simple pass | ||
ok 14 - another simple pass | ||
ok 15 - teardown | ||
ok 16 - teardown more | ||
# whatever.testplpgsql() | ||
ok 17 - setup | ||
ok 18 - Should be nothing in the test table | ||
ok 19 - setup more | ||
ok 20 - plpgsql simple | ||
ok 21 - plpgsql simple 2 | ||
ok 22 - Should be a 1 in the test table | ||
ok 23 - teardown | ||
ok 24 - teardown more | ||
# whatever.testz() | ||
ok 25 - setup | ||
ok 26 - Should be nothing in the test table | ||
ok 27 - setup more | ||
ok 28 - Late test should find nothing in the test table | ||
ok 29 - teardown | ||
ok 30 - teardown more | ||
ok 31 - shutting down | ||
ok 32 - shutting down more | ||
1..32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.