Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite generator #118

Open
angoca opened this issue Oct 13, 2016 · 0 comments
Open

Test suite generator #118

angoca opened this issue Oct 13, 2016 · 0 comments
Assignees
Milestone

Comments

@angoca
Copy link
Owner

angoca commented Oct 13, 2016

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.

@angoca angoca added this to the Version 2 milestone Oct 13, 2016
@angoca angoca self-assigned this Oct 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant