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

JUnit rule for debug probes #938

Closed
qwwdfsad opened this issue Jan 16, 2019 · 0 comments
Closed

JUnit rule for debug probes #938

qwwdfsad opened this issue Jan 16, 2019 · 0 comments
Assignees

Comments

@qwwdfsad
Copy link
Collaborator

qwwdfsad commented Jan 16, 2019

It would be useful to have a debug-probes specific rule for unit tests to avoid boilerplate and time-specific races indump.

For example, for the following code:

@Rule
val debug = DebugProbesRule(timeout = ...)

@Test 
fun test() {
   hangJob.join()
}

the rule installs and uninstalls debug probes before and after tests and dumps all coroutines on timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants