Skip to content

Reasoning behind public only test classes #2151

Discussion options

You must be logged in to vote

There's a primary reason, and then a secondary result.

The primary reason is (or at least was?) that public reflection is much faster than private reflection.

The secondary result (which would be a dramatic impact to us personally) is that in our acceptance tests, we often define the code we want to validate in a private class and then use our acceptance test helper to run that code. It's not run during the initial discover system because it's private, but our acceptance test helper doesn't care that it's private (which is of course required, since many of these acceptance tests by definition need to fail, because they're used to test failure conditions).

We won't try to run tests from pu…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ricky-hartmann-zocdoc
Comment options

@bradwilson
Comment options

Answer selected by bradwilson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants