So I’ve just released pgTAP 0.11. I know I said I wasn’t going to work on it for a while, but I changed my mind. Here’s what’s changed:
- Simplified the tests so that they now load
test_setup.sqlinstead of setting a bunch of stuff themselves. Now only
test_setup.sqlneeds to be created from
test_setup.sql.in, and the other
.sqlfiles depend on it, meaning that one no longer has to specify
maketarget other than the default.
- Eliminated all uses of
E''in the tests, so that we don’t have to process them for testing on 8.0.
- Fixed the spelling of
ON_ROLLBACKin the test setup. Can’t believe I had it with one L in all of the test files before! Thanks to Curtis “Ovid” Poe for the spot.
- Added a couple of variants of
skip(), since I can never remember whether the numeric argument comes first or second. Thanks to PostgreSQL’s functional polymorphism, I don’t have to. Also, there are variants where the numeric value, if not passed, defaults to 1.
- Updated the link to the pgTAP home page in
- TODO tests can now nest.
- Added variants of
throws_ok()that test error messages as well as error codes.
- Converted some more tests to use
- Fixed a bug in
check_test()where the leading whitespace for diagnostic messages could be off by 1 or more characters.
- Fixed the
installchecktarget so that it properly installs PL/pgSQL into the target database before the tests run.
Looking for the comments? Try the old layout.