• 授权协议:MIT
  • 开发厂商:-
  • 软件语言:Java,Groovy
  • 更新日期:2014-09-21
RoboSpock

RoboSpock Android 测试框架

RoboSpock Android 测试框架 项目简介

RoboSpock 是一个开源的 Android 测试框架。提供简单的编写 BDD 行为驱动开发规范的方法,使用 Groovy 语音,支持 Google Guice 库。RoboSpock 合并了 Robolectric 和 Spock 的功能。示例代码:def "should display hello text"() {
    given:
    def textView = new TextView(Robolectric.application)

    and:
    def hello = "Hello"

    when:
    textView.setText(hello)

    then:
    textView.getText() == hello
}

RoboSpock Android 测试框架 评论内容