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

Adding optional defensive programming tests #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moufmouf
Copy link
Collaborator

Rather than removing the tests related to defensive programming techniques in #2, I'd propose to make all defensive programming related tests optional.

I added an additional abstract method: "shouldRunDefensiveProgrammingTests". If it returns true, defensive programming tests are run, otherwise, they are skipped.

It enables us to keep the tests that are valuable, and not to make them compulsory at the same time.

Also, I chose not to put the "defensive programming" tests in a separate test class because 2 abstract test classes means 2 concrete classes implementing twice the same getContainer method (or you have to play with traits to avoid repeatin the getContainer method which is not completely straightforward).

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

Successfully merging this pull request may close these issues.

1 participant