-
Notifications
You must be signed in to change notification settings - Fork 137
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
Allow to customize an existing application (for tests, mocking, etc.) #44
Comments
Since we are going to leverage Spring Boot, |
@sdeleuze do you know if there is a plan to allow the usage of spring tests Or maybe thats not even needed if there was an equivalent DSL for mocking beans in tests like
Updated: Just saw you posted another comment (while I was writing this) regarding |
Added a ticket mockk/mockk#118 |
I finally had some times to play with Mockk, and it is now clear to me that it is what we should promote on Spring side to Mock beans in Spring applications written in Kotlin. @jnizet has created a nice I think @sbuettner proposal about allowing to customize an existing application is interesting, and would be useful for other use case than mocking. We could maybe support something like as a first step:
Then as a second step (with another dedicated issue) we could provide a functional Mockk equivalent to Any thoughts? |
Syntax looks good to me. Mockk was designed to have few front facing DSLs via so called Gateway API |
It turned out to be quite easy and powerful since we now can customize an existing app with any DSL in an additive configuration mode, only
|
I have created #151 for a Kofu equivalent of |
@sdeleuze I like your approach as it uses the default infra to register mocks. I could still see an extension method inside the |
Since for now we recreate context every time with no specific caching involved, we can indeed maybe provide a simple |
Maybe using https://github.com/mockk/mockk.
The text was updated successfully, but these errors were encountered: