首页 » Andorid » 临时分类 » 正文

RxTest

kotlin Rx
kotlin-logo  rx-logo

RxTest - Kotlin DSL for easier RxJava testing.

Build Status codecov Codacy Badge Download Kotlin version badge License Gitter chat Android Arsenal

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

    
    
      com.rubylichtenstein
      rxtest
      1.0.7
      pom

## Mentions

[![androidweekly](https://img.shields.io/badge/androidweekly.net-298-orange.svg?style=flat-square)](http://androidweekly.net/issues/issue-298) 
[![androidweekly](https://img.shields.io/badge/androidweekly.cn-161-orange.svg?style=flat-square)](https://androidweekly.cn/android-dev-weekly-issue-161/)

## Bugs and Feedback

For bugs, questions and discussions please use the [Github Issues](https://github.com/RubyLichtenstein/RxTest/issues).

## Contribution 

Welcome :)
下载 (0)

发表评论