Test-Driven Android [Video]

Preview in Mapt

Test-Driven Android [Video]

Brandan Jones

The smarter way to build fast and dynamic android apps.
Mapt Subscription
FREE
$29.99/m after trial
Video
$106.25
RRP $124.99
Save 14%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$106.25
$29.99p/m after trial
RRP $124.99
Subscription
Video
Start 30 Day Trial

Frequently bought together


Test-Driven Android [Video] Book Cover
Test-Driven Android [Video]
$ 124.99
$ 106.25
Test-Driven iOS Development with Swift 4 - Third Edition Book Cover
Test-Driven iOS Development with Swift 4 - Third Edition
$ 31.99
$ 22.40
Buy 2 for $138.24
Save $18.74
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Video Details

ISBN 139781787129139
Course Length5 hours 22 minutes

Video Description

In Test Driven Android Development, we discuss how good Object Oriented Design and Test Driven Design are complementary. We create a simple JUnit test, using a stub object that represents a data feed. Next, we demonstrate how to write a test driven design unit test for a Java class that performs network operations. After that, we create a unit test for a data access object that uses a JSON data feed. Our test includes JUnit 4 asserts and Hamcrest-style asserst. Then, we discuss blockers that prevent us from writing unit tests, and how we can use Mockito, code coverage, and automatic test execution to ameliorate those blockers. Finally, we look at UI testing with Espresso, and multi-platform testing with Firebase.

Style and Approach

This is a step by step video with a tutorial style approach. The sections will focus on individual app modules and how implementing different TDD method will help you to create reliable and smarter apps in less time.

Table of Contents

Fundamentals of Test-driven Development
The Course Overview
Why Test-Driven Design?
The Testing Pyramid
Behavior-Driven Development
Android Project Structure
Design for Test
Best Practices – Interfaces, DTOs, and Layers
Why Interfaces?
DTO Best Practices
Layer Description – UI, Business Logic, and Data Access
Minimizing If Tests
Introduction to Unit Testing
JUnit Syntax
JUnit Annotations
Example with Setup and Teardown
Design for Test
Create a Test-driven Design Test
Behavior-driven Design
Given, when, and then syntax
Example – Given, When, and Then
Extended Given, When, and Then Test
More Asserts
More Assert Examples
Hamcrest Asserts
Add-ins/Plug-ins
Remove Dependencies with Mockito
Mockito Example
Technical Debt
Unit Test Code Coverage in Android Studio
Build environment
Testing Beyond the Unit Test
Android Instrumentation Test
Android Instrumentation Test Example
Espresso Overview
Example Espresso Test
Firebase Test Lab

What You Will Learn

  • Why test driven design is important.
  • How test drives good design.
  • JUnit testing basics.
  • Advanced JUnit testing.
  • Write reusable test components with behavior driven design.
  • Plugins that enhance the testing experience.
  • Android-specific test frameworks, including UI tests.

Authors

Table of Contents

Fundamentals of Test-driven Development
The Course Overview
Why Test-Driven Design?
The Testing Pyramid
Behavior-Driven Development
Android Project Structure
Design for Test
Best Practices – Interfaces, DTOs, and Layers
Why Interfaces?
DTO Best Practices
Layer Description – UI, Business Logic, and Data Access
Minimizing If Tests
Introduction to Unit Testing
JUnit Syntax
JUnit Annotations
Example with Setup and Teardown
Design for Test
Create a Test-driven Design Test
Behavior-driven Design
Given, when, and then syntax
Example – Given, When, and Then
Extended Given, When, and Then Test
More Asserts
More Assert Examples
Hamcrest Asserts
Add-ins/Plug-ins
Remove Dependencies with Mockito
Mockito Example
Technical Debt
Unit Test Code Coverage in Android Studio
Build environment
Testing Beyond the Unit Test
Android Instrumentation Test
Android Instrumentation Test Example
Espresso Overview
Example Espresso Test
Firebase Test Lab

Video Details

ISBN 139781787129139
Course Length5 hours 22 minutes
Read More

Read More Reviews

Recommended for You

Test-Driven iOS Development with Swift 4 - Third Edition Book Cover
Test-Driven iOS Development with Swift 4 - Third Edition
$ 31.99
$ 22.40
Angular Test-Driven Development - Second Edition Book Cover
Angular Test-Driven Development - Second Edition
$ 31.99
$ 22.40
Test-Driven iOS Development with Swift 3 Book Cover
Test-Driven iOS Development with Swift 3
$ 31.99
$ 22.40
Scala Test-Driven Development Book Cover
Scala Test-Driven Development
$ 31.99
$ 22.40
Test-Driven iOS Development with Swift Book Cover
Test-Driven iOS Development with Swift
$ 31.99
$ 6.40
Test-Driven JavaScript Development Book Cover
Test-Driven JavaScript Development
$ 31.99
$ 22.40