Skip to content

JUnit rule for debug probes #938

Closed
Closed
@qwwdfsad

Description

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

Activity

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions