You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What: I've found in testing that there is sometimes a need to invoke a non-public member. We should make a function that makes non-public members public.
Why: Sometimes I'll find that I need to test a non-public method or check a non-public property. Adding the ability to "rewire" a class and make its members public would be useful in testing. For example, you could test that a public method calls a protected method. The public method basically covers the protected method, but what if you want to test protected method as its own unit?
Acceptance Criteria
New Rhum function to make protected members public
Tests
Documentation
The text was updated successfully, but these errors were encountered:
Summary
What: I've found in testing that there is sometimes a need to invoke a non-public member. We should make a function that makes non-public members public.
Why: Sometimes I'll find that I need to test a non-public method or check a non-public property. Adding the ability to "rewire" a class and make its members public would be useful in testing. For example, you could test that a public method calls a protected method. The public method basically covers the protected method, but what if you want to test protected method as its own unit?
Acceptance Criteria
The text was updated successfully, but these errors were encountered: