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

Investigate the option to create a mock/spy in-place #65

Open
picimako opened this issue Apr 7, 2024 · 0 comments
Open

Investigate the option to create a mock/spy in-place #65

picimako opened this issue Apr 7, 2024 · 0 comments
Labels
feature New functionality

Comments

@picimako
Copy link
Owner

picimako commented Apr 7, 2024

Summary

When implementing unit tests and mocking certain method calls, one may take the route of writing the code how it may look with possible arguments, names, structure, and such. Then, proceed to creating the written variables, methods, types, etc.

To simplify mock creation, intention actions could be implemented for error elements to create mock/spy local variables or fields based on the type of the method argument at hand.

Tasks

  • Create intention action(s) that could create mock/spy local variables and fields from method argument error elements.
  • The intention action would probably present an option where to create the mock/spy object, and users could choose.
  • If the method argument type cannot be resolved, an error message would appear that the variable/field cannot be created.
@picimako picimako added the feature New functionality label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
Development

No branches or pull requests

1 participant