I've just released pgTAP 0.15. The most important new feature is
support for xUnit-style tests. Now you can write functions that use
the pgTAP assertion functions and install them in your database, and
then use the `runtests()` function to run them from your preferred
SELECT * FROM runtests();
You can download pgTAP 0.15 here:
What is pgTAP? It's a unit-testing framework for PostgreSQL. See the
Web site for the gory details:
And here's the list of changes:
* Changed `pg_typeof()` from immutable to stable, in compliance with
its configuration in the forthcoming PostgreSQL 8.4.
* Added `do_tap()`, which finds test functions and runs them, allowing
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`.
* Added `pgtap_version()`.
* Added the "html" make target to generate the HTML documentation for
the Web site, including a table of contents and documenation for
pgsql-announce by date
|Next:||From: Bruce Momjian||Date: 2009-01-24 15:36:22|
|Subject: Need help on possible PG 8.4 security features|
|Previous:||From: Dan Langille||Date: 2009-01-20 03:05:11|
|Subject: PGCon 2009 RFP|