RxTest

General

Category
Free
Tag
Testing
License
Apache License, Version 2.0
Registered
Jan 6, 2018
Favorites
0
Link
https://github.com/RubyLichtenstein/RxTest
See also
Cortado
Gordon
Robolectric
Ristretto
Burst

Additional

Language
Kotlin
Version
v1.0.7 (Feb 28, 2018)
Created
Oct 28, 2017
Updated
Mar 1, 2018 (Retired)
Owner
Ruby Lichtenshtein (RubyLichtenstein)
Contributors
Ed Holloway-George (ed-george)
Ruby Lichtenshtein (RubyLichtenstein)
2
Activity
Badge
Generate
Download
Source code
kotlin Rx
 

RxTest - Kotlin DSL for easier RxJava testing.

Main features

  • Clear tests: write clean, readable and simple tests in scala-test 'should style'.
  • Easy to extend: create custom matchers for complex test cases or just for more readable code.
  • Simple to use: same API as RxJava assertions you already know.

Example

Observable.just("Hello RxTest!")
    .test {
        it shouldEmit "Hello RxTest!"
        it should complete()
        it shouldHave noErrors()
    }

Documentation

Download

  • Gradle

dependencies {       
    testImplementation 'com.rubylichtenstein:rxtest:1.0.7'
}
  • Maven

<dependency>
    <groupId>com.rubylichtenstein</groupId>
    <artifactId>rxtest</artifactId>
    <version>1.0.7</version>
    <type>pom</type>
</dependency>

Mentions

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

Contribution

Welcome :)