Closed JakeWharton closed 9 years ago
Note: this does not actually run the tests on CI. I'll do that in a follow-up along with maybe some actual tests...
Damn. Of course Travis is set up to run connectedCheck
. Whevs. I'll just add it now...
Test is failing but passes locally (though I'm on 5.1 emu). Thanks for the HTML report on the CI server, Gradle. Useless. Too late to look tonight, maybe tomorrow.
A custom test runner subclass flips a boolean on a debug module before the graph is created. When the graph does get created, we use that boolean to force mock mode and skip wrapping the debug controls (both because it would never be used but also to ensure view-based matchers of Espresso work). We also kill the keyguard and hold a wake lock so that the screen is on and visible.
Closes #149. Closes #152.