Coder Social home page Coder Social logo

unittest's Introduction

UnitTest

学习单元测试中,Demo有关于JUnit,Mockito,PowerMockito,Robolectric的一些使用例子

开发环境

Android Studio 3.0

Build #AI-171.4408382, built on October 21, 2017

JRE: 1.8.0_152-release-915-b08 x86_64

JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Mac OS X 10.12.6

功能说明

JUnit中常见注解的使用如:@Test,@Test(timeout),@Test(exception.class),@Before,@BeforeClass,@After,@AfterClass,@Ignore,@Rule, custom rule,测试套件,参数化测试。

Mock中的Mockito的使用,PowerMockito的使用(返回值为void的测试,异步功能的测试)。

Robolectric中测Activity生命周期,字符串资源测试,Activity界面跳转测试。

unittest's People

Contributors

xiulin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.