- We are here to practice UI Testing.
- We are going to use Espresso to interact with the Application UI.
- We are going to use Dagger2 to replace production code with Test Doubles.
- We are going to practice pair programming.
This repository contains an Android application to show Super Heroes information:
This Application is based on two Activities:
MainActivity
showing a list of super heroes with name, photo and a special badge if is part of the Avengers Team.
SuperHeroDetailActivity
showing detailed information about a super hero like his or her name, photo and description.
The application architecture, dependencies and configuration is ready to just start writing tests. In this project you'll find Dagger2
configured to be able to replace production code with test doubles easily and Espresso to be able to interact with the application user interface.
There are some links which can be useful to finish these tasks:
- Android Testing Support Library official documentation
- Espresso Cheat Sheet
- Espresso Idling Resources
- Espresso Custom Matchers
- Finding UI views
- Espresso Test Toolbar Title
Data provided by Marvel. © 2016 MARVEL
#License
Copyright 2016 Karumi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.