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

[Question] Is this the right way to customize blockhound-junit-platform? #50

Closed
dsibilio opened this issue Sep 20, 2019 · 4 comments
Closed
Labels
area/spi type/question Further information is requested

Comments

@dsibilio
Copy link
Contributor

Not really an issue, but I couldn't find a gitter channel for BlockHound where I would've asked this question otherwise :)

I'm playing around with BlockHound JUnit Platform for a little demo based on Project Reactor (https://github.com/dsibilio/blockhound-demo).

While fiddling with it, I noticed that the ch.qos.logback.classic.Logger#buildLoggingEventAndAppend got flagged downstack due to some blocking IO.

Of course I wanted to allow this method but I couldn't find a way to customize BlockHound before initialization since it gets done for me by the BlockHoundTestExecutionListener.java, so I had to:

So, as per title, is this the right way to allow/disallow custom methods when wanting to use blockhound-junit-platform? Or is there something obvious that I might've missed?

Thanks in advance :)

@bsideup
Copy link
Contributor

bsideup commented Sep 21, 2019

@bsideup bsideup added area/spi type/question Further information is requested labels Sep 21, 2019
@dsibilio
Copy link
Contributor Author

Thanks, didn't notice the empty varargs install method loaded all the integrations.
Integrated the change in my demo and everything still works, much better.

Thank you! :)

@bsideup
Copy link
Contributor

bsideup commented Sep 21, 2019

Good!

I'm going to close the issue (the SPI mechanism is mentioned in the docs too)

@bsideup bsideup closed this as completed Sep 21, 2019
@bsideup
Copy link
Contributor

bsideup commented Sep 21, 2019

FYI I created a Gitter room :) https://gitter.im/reactor/BlockHound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/spi type/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants