utPLSQL

The utPLSQL project is an open source unit-testing framework for PL/SQL developers, created by PL/SQL author Steven Feuerstein. He has modeled utPLSQL on Junit, which is part of a lightweight methodology known as XP (Extreme Programming). Extreme Programming is characterized by clean, simple design and rigorous planning, coding, and testing. You can check out the unfolding utPLSQL project at this site:

http://oracle.oreilly.com/utplsql/

For more about Extreme Programming, see:

http://www.extremeprogramming.org

utPLSQL is based on six XP design axioms:

Work with human nature

Testing is painful. There are always a hundred and one better things to do than test—but testing is essential if you’re going to write good software. So utPLSQL attempts to help coders overcome this natural aversion by creating a lightweight test framework that is easy to install, use, and run.

Write tests first

Any graduate of the corporate IT quality initiatives of the early 1990s will probably remember having this principle drilled into them by serious people in large suits. It’s a bit like English teachers throughout the world force-feeding their pupils Shakespeare: this sort of thing can turn people off for life. The utPLSQL project attempts to square the circle here by making test planning an essential and desired time-saving process, as opposed to something you’ll do when you have a little spare time.

Code a little, test thoroughly

This is an axiom of most open source developers; it’s a truism to say that the best coders are usually the best coders because they are the best testers. utPLSQL tries to encourage this approach, too.

Isolated, automated testing

In a bid to find the bugs and ease the workload, the utPLSQL methodology attempts to make testing as fine-grained and automatic as possible.

Red light, green light

utPLSQL tries not to waste precious time studying complex test output. It tries to make things simple so you can know at a glance whether a test has passed or failed.

Transform bug reports into test cases

Don’t just fix code in a panic and on the fly. Build the alleged bug into the automated test suite. Provide yourself with both reliable evidence that the bug actually exists and reliable pointers to how it can be removed most effectively.

utPLSQL certainly sounds like an interesting and thorough project, and one that will be particularly helpful for developers working on large PL/SQL systems. If it sounds like your cup of tea, you may also want to add yourself to the discussion group here:

http://www.egroups.com/group/utPLSQL/
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset