Spek extension that injects and restores RxJava schedulers before and after each test.
This defaults to Schedulers.trampoline()
, but can be changed as needed.
A common use-case would be a custom TestScheduler
in order to advance time.
dependencies {
testImplementation "cc.femto:spek-rx-android-extras:1.0.0"
}
Requires the JitPack repository:
repositories {
maven { url "https://jitpack.io" }
}