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

Blockhound turn off and on for junit platform #292

Closed
niji2507 opened this issue Aug 18, 2022 · 2 comments
Closed

Blockhound turn off and on for junit platform #292

niji2507 opened this issue Aug 18, 2022 · 2 comments
Labels
status/has-workaround This has a known workaround described type/question Further information is requested

Comments

@niji2507
Copy link

How to turn on and turn off block hound when integrated with junits?

@pderop pderop added type/question Further information is requested for/user-attention This issue needs user attention (feedback, rework, etc...) labels Jan 13, 2023
@pderop
Copy link
Member

pderop commented Jan 13, 2023

Hi @niji2507 ,

if you are using gradle, you can try to do the same as what is done for the BlockHound tests, where each junit tests are forked using a new process, this will I think do what you are looking for.

See in the test build.gradle, where forkEvery=1 and maxParallelForks=1 are used.

let me know.
thanks.

@pderop pderop added status/has-workaround This has a known workaround described and removed for/user-attention This issue needs user attention (feedback, rework, etc...) labels Jan 18, 2023
@pderop
Copy link
Member

pderop commented Jan 18, 2023

Hi @niji2507 ,

Since forking each junit test should resolve the issue (like using forkEvery=1 and maxParallelForks=1 in gradle for example), I'm then closing this issue.

Feel free to reopen if needed.
Thanks.

@pderop pderop closed this as completed Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/has-workaround This has a known workaround described type/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants