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

Ability to test non-public members #19

Closed
3 tasks
crookse opened this issue Jun 24, 2020 · 0 comments
Closed
3 tasks

Ability to test non-public members #19

crookse opened this issue Jun 24, 2020 · 0 comments
Assignees

Comments

@crookse
Copy link
Member

crookse commented Jun 24, 2020

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

  • New Rhum function to make protected members public
  • Tests
  • Documentation
@crookse crookse added the v2 label Oct 20, 2020
@crookse crookse self-assigned this Oct 23, 2020
@crookse crookse changed the title Ability to make non-public members public Ability to test non-public members Oct 23, 2020
@crookse crookse closed this as completed Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant