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

Make the Features class mockable so it's easier to test #585

Closed
Tracked by #570
caendesilva opened this issue Oct 25, 2022 · 0 comments · Fixed by #630
Closed
Tracked by #570

Make the Features class mockable so it's easier to test #585

caendesilva opened this issue Oct 25, 2022 · 0 comments · Fixed by #630
Assignees
Labels
contributors-welcome Want something to do? Look here! hacktoberfest

Comments

@caendesilva
Copy link
Member

caendesilva commented Oct 25, 2022

Right now some tests get a lot of extra complexity when trying to fulfil certain requirements that could just as well be mocked.

Could be something for intermediary participators of Hacktoberfest?

Thinking an interface like Features::mock('method', 'return value') could be nice. Of course both the mocking feature itself needs to have tests, bonus points if you refactor some existing test code to use the mocking feature to demonstrate it "in action".

@caendesilva caendesilva added contributors-welcome Want something to do? Look here! hacktoberfest labels Oct 25, 2022
@caendesilva caendesilva mentioned this issue Oct 29, 2022
26 tasks
@caendesilva caendesilva self-assigned this Oct 30, 2022
@caendesilva caendesilva linked a pull request Oct 30, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributors-welcome Want something to do? Look here! hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant