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

Feature Request: View controller and view mocking support. #337

Open
erneestoc opened this issue Jan 20, 2023 · 0 comments
Open

Feature Request: View controller and view mocking support. #337

erneestoc opened this issue Jan 20, 2023 · 0 comments

Comments

@erneestoc
Copy link
Contributor

I've been playing with the idea of allowing automocks of some core components of iOS applications.

For example:

protocol MyAwesomeViewControllerType: UIViewController, Automockable {
    init(myImportantParameter: Bool)
    func someUsefulFunction()
}

In this way I could register types on my DI system, and inject fake types on my test. The views or view controller would have a watermark with the names of the controller in case we use snapshot testing, and would allow us to assert the behavior we're using.

Any thoughts?

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

No branches or pull requests

1 participant