Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Unit Test Cases with MVP

Unit Test Cases with MVP

What is unit test ?
how to write test cases?
What is mockito ?
Types of testing.

Avatar for Technophile Community Surat

Technophile Community Surat

September 16, 2018
Tweet

More Decks by Technophile Community Surat

Other Decks in Technology

Transcript

  1. What is Unit testing? • A unit test is a

    piece of code that exercises a very small, specific area of functionality of the code being tested. • It tests the smallest possible unit of code, without dependencies on system or network resources. • It is written by software developers and for software developers.
  2. Local unit Tests • Located at module-name/src/test/java • These all

    test runs under JVM and do not have access to functional android framework APIs. • Tools: JUnit, Mockito, Roboletric, etc
  3. Instrumented tests • Located at module-name/src/androidTest/java • These all test

    runs on Android emulator or real devices. • Tools: Espresso, Robotium, etc
  4. JUnit • JUnit is an open source Unit Testing Framework

    for JAVA. It is useful for Java Developers to write and run repeatable tests. • Dependency: testImplementation 'junit:junit:4.12'