Skip to content

Testing

Testing

Introduction

Automated tests can greatly improve the quality of your projects. You can run quick unit tests to check out non platform code, such as view models and algorithms, and instrumented tests that run on an emulator to test platform interaction such as user interfaces and databases.

In this module we'll add some tests to a simplified movies application.

Note

Due to out-of-town trips and a bout of COVID, I decided to edit a recording of a live lecture that I gave Summer 2021. There are a few rough spots near the end of the first part of the example (live coding works well for me most of the time, but when it goes south, it does so spectacularly), but they're worked out in the second part of the example.

Videos

Total video time for this module: 1:58:35

Testing: Example, Part 1 (Summer 2021) (1:02:04)

Testing: Example, Part 2 (Summer 2021) (56:31)

Example Source

See: https://gitlab.com/605-686/fall-2023-refresh/modules/testing