By Durga Dasari
DbFit - DB Unit and Integration test tool Test-driven database development. Write readable, easy- to-maintain unit and integration tests for your database code. Developed out of the Fitnesse Acceptance testing framework for unit testing and acceptance testing. It also gives DBA a neat tool to express and manage tests in a relational language without knowledge of.net or Java.
Why DbFit ? Easy to use - Tests are expressed and managed as tables - Web-Wiki front end Provides all the plumbing - Transaction management - Features bases on meta-data - Parameter mapping Runs inside the FitNesse - already integrated with lot of tools and libraries.
A Simple Fit framework As it is built on a Wiki interface, the creation of tests are quite straight forward and could almost be written by business analysts or even the client themselves. Fitnesse Wiki Hierarchies - SubWiki, Test Suites Page types - Suite, Test, Static Some Special pages - PageHeader, PageFooter - SetUp, SuiteSetUp - Inherited recursively by default ; can be override
Unit Test with DbFIT: Arange -> Act-> Assert Set up input data Execute a function or procedure Run a query and compare actual Vs expected data. Basic Command Query Insert Update Execute procedures Execute
Advanced features Inspect queries, tables, procedures to auto generate test tables and regression tests Store and compare queries Stand-lone mode for full control
Sample test
More info/Useful links and-oracle-bgoug-conference