Skip to content

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