angoca/db2unit

Test suite generator

Opened this issue · 0 comments

Create a procedure that for a given store procedure name generates a test suite file.

The procedure will receive a string that validates if it corresponds to an existing procedure or function.
Then, it will take the input parameters and their types. For each parameter, it could generate a set of test cases according to its data type. For example, boolean: true, false, null. integer: 0, -1, 1, big negative, big positive, null. string: null, empty, dash, space, one letter, one digit, multiple letters, multiple digits, multiple different characters.
If there are not input parameters, just one test case will created.
If the routine is a function, assertions will be created according to its type of value returned.

The test cases will be created with the right content, defining a expected and actual value. Also, a commented global variable to be uncommented if necessary.

Documentation header, and documentation for each test case should be generated according to DB2 code conventions. Create setup and tear routines to be filled.