Giter VIP home page Giter VIP logo

workshop-android-20180514's Introduction

Summary workshop from the Automated testing for Android app with Java

How to run ?

# Run Unit test
$./gradlew test

# Run UI test
$./gradlew cAT

# Run with coverage report
$./gradlew fullCoverageReport

# Run with Fastlane screengrab
$./gradlew clean assembleDebug assembleAndroidTest
$fastlane screengrab

Day 1

  1. Introduction Android testing in Android Studio

  2. Unit testing with JUnit 4

    • Basic of JUnit
    • Create first unit test
    • TDD (Test-Driven Development)
    • Run Unit test from Android Studio
    • Run Unit test from command-line and see result in HTML fotmat
    • Try to run code coverage with Jacoco
  3. UI testing with Espresso

    • Basic of Espresso for UI Testing
    • Create first tests
    • Run UI test from Android Studio
    • Run UI test from command-line and see result in HTML fotmat
    • Try to run code coverage
    • Combine the code coverage result from UI and Unit test
  4. Capture screen with Fastlane screengrab

Day 2

  1. Run monkey testing
  2. Add more tests for new features (Test-Driven Development)
  3. Working with REST APIs (Retrofit and OkHTTP)
  4. How to testing with REST APIs ? (MockWebServer vs Stubby4J vs Real API)
  5. Testable application (Refactor with confidene)
  6. Working with Continuous Integration (Jenkins)

workshop-android-20180514's People

Contributors

up1 avatar

Watchers

James Cloos 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.