question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a Kofu equivalent of @MockkBean

See original GitHub issue

Collaborate with @jnizet on a Kofu variant of @MockkBean from https://github.com/Ninja-Squad/springmockk (see https://github.com/spring-projects/spring-boot/issues/15749 for the context).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sdeleuzecommented, May 14, 2019

I am not convinced there is a need for that since the customizing capabilities bring by #44 are pretty powerful so I prefer to close this issue for now, feel free to reopen if there is some concrete PR or proposal.

0reactions
tgirard12commented, Jul 1, 2019

The customize function work well but I think it’s could be more easier to use. A solution could be to mockk an entire configuration block like :

configuration { dataConfig }.mockk()

// or

enable(dataConfig.mockk())

I don’t know if it’s possible to have a list of all the beans create by a configuration and mock them ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provide a Kofu equivalent of @MockkBean · Issue #151 - GitHub
I am not sure this is something we want to support, the functional variant is not a strict equivalent of the annotation based...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found