Background -
I have a client that has an Oracle database with many procedures and functions that contain business logic. As a "good" developer, I like to have all my business logic have automated tests wrapped around it.
The procedure in question is very long with nested ifs. It hits many tables and views based on data passed in and data retrieved from the database.
My initial thought is to create a c# application containing only NUnit tests that will use data already in the database to test the procedure. Once I have 100% code coverage, I will modify those tests to insert/cleanup the test data. Once that is done, I can then refactor and modify the procedure as needed without worry of breaking something.
Is there a better/easier way to do automated testing for Oracle procedures/packages/functions?
EDIT: I cannot use something that needs to be installed on the server at this point.