Best Practices

The following are best practices we as utPLSQL have learned about PL/SQL and Unit Testing.

Test Isolation and Dependency

Writing tests

Gaining value from the tests

Tests are not for production

Tests generate will generate and operate on fake data. They might insert/update and delete data. You don’t want tests to run on production database and touch on real-life data.

Tests and their relationship to code under test.

Version Control

Use a version control system for your code. Don’t just trust the database for code storage. This includes both the code under test, and the unit tests you develop as well. Treat database as target, destination for your code not as a source of it.