docs/ui/android/mvc_testing.md
This document is intended to go over the best practices of testing the various MVC components.
If you are new to MVC, read the intro guide here: So, you want to MVC...
Keep your tests small and isolated to just the component you are testing.
Keep the number of large integration tests to a minimum (e.g. testing the full coordinator together).
Test each element of your component independently (where possible). The Mediator should be testable without a View, View without the Mediator.
assertTrue/assertFalse should only be used for methods that return booleans. Here are some examples of the bad usage of assertTrue and their most descriptive and useful counterparts:
The core business logic of your component should live within your mediator.
Ideally, the Mediator should be testable using Robolectric on the host machine (TODO: link to general Robolectric/Junit test guide).
The View/ViewBinder should be tested as an independent unit.