Chapter 15
Test Your App’s UI with Espresso

Welcome to the second half of our testing section! Here we’re taking the unit testing concepts from last chapter and we’re moving them to the screen. This chapter is all about simulating users playing Penny Drop and making sure things work. You’ll even be able to see your tests being run on your device in real time, which is always neat.

We started last chapter with post--Chapter 4 code, then moved to the “final” Penny Drop codebase, which is what we had after Chapter 7. Here, we’re going to also use that post--Chapter 7 code without any of the test code from last chapter. That way we can focus on what’s being used for each chapter and type of test.

The high-level plan for this chapter is to set up our dependencies, give a quick overview of Espresso, then write two test classes: PickPlayersFragmentTests and GameFragmentTests.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.2.15