pgTAP 0.20 Infiltrates Community
I did all I could to stop it, but it just wasn’t possible. pgTAP 0.20 has somehow made its way from my Subversion server and infiltrated the PostgreSQL community. Can nothing be done to stop this menace? Its use leads to cleaner, more stable, and more-safely refctored code. This insanity must be stopped! Please review the following list of its added vileness since 0.19 to determine how you can stop the terrible, terrible influence on your PostgreSQL unit-testing practices that is pgTAP:
- Changed the names of the functions tested in
sql/do_tap.sqlandsql/runtests.sqlso that they are less likely to be ordered differently given varying collation orders provided in different locales and by different vendors. Reported by Ingmar Brouns. - Added the
--formatterand--archiveoptions topg_prove. - Fixed the typos in
pg_provewhere the output of--helplisted--test-matchand--test-schemainstead of--matchand--schema. - Added
has_cast(),hasnt_cast(), andcast_context_is(). - Fixed a borked function signature in
has_trigger(). - Added
has_operator(),has_leftop(), andhas_rightop(). - Fixed a bug where the order of columns found for multicolum indexes by
has_index()could be wrong. Reported by Jeff Wartes. Thanks to Andrew Gierth for help fixing the query.
Don’t make the same mistake I did, where I wrote a lot of pgTAP tests for a client, and now testing database upgrades from 8.2 to 8.3 is just too reliable! YOU HAVE BEEN WARNED.
Good luck with your mission.
Backtalk