Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
1 of 4

Lightning Talk - pgTAP

0

Share

Download to read offline

Lightning talk at the 2011 Evergreen Conference.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Lightning Talk - pgTAP

  1. 1. pgTAP <ul><li>EASY test cases for database stored procedures and functions </li></ul><ul><li>http://pgtap.org / </li></ul>
  2. 2. pgTAP <ul><li>BEGIN; </li></ul><ul><li>SELECT plan(3); </li></ul><ul><li>select is (public.naco_normalize(' 普通話 / 普通话 '), ' 普通話 普通话 ', 'Chinese text' ); </li></ul><ul><li>select is (public.naco_normalize(' ٠١٢٣٤٥ '), '012345', 'other decimal digits' ); </li></ul><ul><li>select is (public.naco_normalize('²³¹'), '231', 'superscript numbers'); </li></ul><ul><li>SELECT * FROM finish(); </li></ul><ul><li>ROLLBACK; </li></ul>
  3. 3. pgTAP <ul><li>Test cases good for development </li></ul><ul><li>But not just development ... want to do a big, complicated SQL update? You can add checks. </li></ul>
  4. 4. Thanks <ul><li>Galen Charlton </li></ul><ul><li>[email_address] </li></ul>

×