This document discusses unit testing PL/SQL code with Ruby. It introduces the ruby-plsql-spec library, which allows writing unit tests for PL/SQL in Ruby. The benefits of this approach include more compact and readable test syntax compared to traditional PL/SQL testing frameworks. The document provides an example of substring testing and discusses why more developers don't use unit testing. It also lists some typical problems with PL/SQL testing and introduces visual testing tools.
8. Good unit tests
Automatic, run fast
Wide code coverage including edge cases
Repeatable
Independent from execution order
Using real and understandable test data
15. Why used just by
few?
too large / too verbose test code?
hard to read, too much noise?
hard to test complex cases?
no best practices how to write tests?
nobody is using, why should I use?
16. ruby-plsql-spec
ideal language for writing tests
RSpec powerful testing tools
with “readable” syntax
library for calling
ruby-plsql PL/SQL procedures
from Ruby
18. Benefits
compact, readable syntax
powerful features also for complex tests
best practices from Ruby community
based on needs from real projects
opensource – “free as in beer” :)