pgTAP 0.12 Released
In anticipation of my PostgreSQL Conference West 2008 talk on Sunday, I’ve just released pgTAP 0.12. This is a minor release with just a few tweaks:
- Updated
plan()to disable warnings while it creates its tables. This means thatplan()no longer send NOTICE messages when they run, although tests still might, depending on the setting ofclient_min_messages. - Added
hasnt_table(),hasnt_view(), andhasnt_column(). - Added
hasnt_pk(),hasnt_fk(),col_isnt_pk(), andcol_isnt_fk(). - Added missing
DROPstatements touninstall_pgtap.sql.in.
I also have an idea to add functions that return the server version number (and each of the version number parts) and an OS string, to make testing things on various versions of PostgreSQL and on various operating systems a lot simpler.
I think I’ll also spend some time in the next few weeks on an article explaing exactly what pgTAP is and why you’d want to use it. Provided, of course, I can find the tuits for that.
Comments & Trackbacks
Ben Finney wrote:
Theory wrote: