Professional Documents
Culture Documents
Six Simple Steps To Unit Testing Happiness
Six Simple Steps To Unit Testing Happiness
to
Unit Testing
Happiness
Steven Feuerstein
steven.feuerstein@quest.com
PL/SQL Evangelist, Quest Software
www.oracleplsqlprogramming.com
www.unit-test.com www.quest.com
Embarrassing
Expensive
Deadly
Copyright 2006 Steven
big trouble.
Copyright 2006 Steven
Truth or Dare
How do you (or your team) unit test
your PL/SQL code today?
Typical Testing
DBMS_OUTPUT.PUT_LINE - unit testing
mechanism of choice?
BEGIN
DBMS_OUTPUT.PUT_LINE
DBMS_OUTPUT.PUT_LINE
DBMS_OUTPUT.PUT_LINE
DBMS_OUTPUT.PUT_LINE
DBMS_OUTPUT.PUT_LINE
DBMS_OUTPUT.PUT_LINE
DBMS_OUTPUT.PUT_LINE
END;
betwnstr.sf
betwnstr.tst
(betwnstr
(betwnstr
(betwnstr
(betwnstr
(betwnstr
(betwnstr
(betwnstr
(NULL, 3, 5,
('abcdefgh',
('abcdefgh',
('abcdefgh',
('abcdefgh',
('abcdefgh',
('abcdefgh',
true));
0, 5, true));
3, 5, true));
-3, -5, true));
NULL, 5, true));
3, NULL, true));
3, 100, true));
http://utplsql.sourceforge.net/
utPLSQL
http://www.unit-test.com
Quest Code Tester for Oracle
betwnstr0.sf
TNT or TDD?
betwnstr1.sf