Lightning Talk - pgTAP

1,385 views

Published on

Lightning talk at the 2011 Evergreen Conference.

Published in: Technology, Business
3 Comments
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
1,385
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
3
Likes
0
Embeds 0
No embeds

No notes for slide

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>

×