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

Document guidelines for writing tests #4

Open
PatrickvL opened this issue Jan 3, 2018 · 0 comments
Open

Document guidelines for writing tests #4

PatrickvL opened this issue Jan 3, 2018 · 0 comments

Comments

@PatrickvL
Copy link
Member

Describe how tests are supposed to be written. A few suggestions:

Test as much variation of input arguments as reasonably possible.
Test if wrong input is denied according to specs.
When arguments have to obey some rule that can't be tested, describe the reason for skipping that test in a comment.
Test extreme (min, max, magic) argument values.
Test that all known effects have happened.
Always cleanup afterwards.
The only allowed resource leaks are those that are impossible to avoid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant