All Projects → Karumi → KataSuperHeroesIOS

Karumi / KataSuperHeroesIOS

Licence: Apache-2.0 license
Super heroes kata for iOS Developers. The main goal is to practice UI Testing.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to KataSuperHeroesIOS

Kata-Dagger2-Android
Kata to practice Dependency injection using Dagger 2.
Stars: ✭ 21 (-69.57%)
Mutual labels:  kata, dependency-injection
KataTODOApiClientKotlin
TODO API Client Kata for Kotlin Developers. The main goal is to practice integration testing using MockWebServer
Stars: ✭ 59 (-14.49%)
Mutual labels:  training, kata
KataContactsKotlin
KataContacts written in Kotlin. The main goal is to practice Clean Architecture Development
Stars: ✭ 47 (-31.88%)
Mutual labels:  training, kata
training-materials
No description or website provided.
Stars: ✭ 47 (-31.88%)
Mutual labels:  training
lightsaber
Compile time dependency injection framework for JVM languages. Especially for Kotlin.
Stars: ✭ 119 (+72.46%)
Mutual labels:  dependency-injection
di-comparison
DI containers comparison
Stars: ✭ 20 (-71.01%)
Mutual labels:  dependency-injection
solid-kata
Kata for practicing SOLID principles
Stars: ✭ 18 (-73.91%)
Mutual labels:  kata
di
🛠 A full-featured dependency injection container for go programming language.
Stars: ✭ 156 (+126.09%)
Mutual labels:  dependency-injection
Mimick.Fody
An integrated framework for dependency injection and aspect-oriented processing.
Stars: ✭ 15 (-78.26%)
Mutual labels:  dependency-injection
CodeCoopersLms
As Code Coopers Training (previously known as Virtual Tech Academy), we have launched a LMS for our students. We are open sourcing those LMS projects here one by one for the greater good. Please share and Mark Star if you appreciate it.
Stars: ✭ 18 (-73.91%)
Mutual labels:  training
unbox
Fast, simple, easy-to-use DI container
Stars: ✭ 45 (-34.78%)
Mutual labels:  dependency-injection
postcsslayouts
This is the repository for my course, Building a Responsive Single-Page Design with PostCSS on LinkedIn Learning and Lynda.com.
Stars: ✭ 22 (-68.12%)
Mutual labels:  training
component-manager
component framework and dependency injection for golang
Stars: ✭ 21 (-69.57%)
Mutual labels:  dependency-injection
progressive
This is the repository for my course, Building a Progressive Web App on LinkedIn Learning and Lynda.com.
Stars: ✭ 26 (-62.32%)
Mutual labels:  training
DependencyInjector
Lightweight dependency injector
Stars: ✭ 30 (-56.52%)
Mutual labels:  dependency-injection
DDTTX
DDTTX Tabletop Trainings
Stars: ✭ 22 (-68.12%)
Mutual labels:  training
blockchain
Blockchain, basic implementation in go
Stars: ✭ 16 (-76.81%)
Mutual labels:  training
tsdi
Dependency Injection container (IoC) for TypeScript
Stars: ✭ 50 (-27.54%)
Mutual labels:  dependency-injection
mvp-architecture-kotlin-dagger-2-retrofit-android
Android Application MVP (Model-View-Presenter) architecture example using Dagger2 Dependency Injection (DI) and Retrofit Tutorial using Kotlin programming language.
Stars: ✭ 15 (-78.26%)
Mutual labels:  dependency-injection
iOSBasicTraining
Code associated to the first level of our iOS Training.
Stars: ✭ 16 (-76.81%)
Mutual labels:  training

Karumi logo KataSuperHeroes for iOS.

  • We are here to practice UI Testing.
  • We are going to use KIF and Nimble to interact with the Application UI.
  • We are going to use manual Dependency Injection to replace production code with Test Doubles.
  • We are going to practice pair programming.

Getting started

This repository contains an iOS application written in Swift to show Super Heroes information:

ApplicationScreencast

This Application is based on two ViewControllers:

  • SuperHeroesViewController showing a list of super heroes with name, photo and a special badge if is part of the Avengers Team.

SuperHeroesViewControllerScreenshot

  • SuperHeroDetailViewController showing detailed information for a super hero like the name, photo and description.

SuperHeroDetailViewControllerScreenshot

The application architecture, dependencies and configuration is ready to just start writing tests. In this project you'll find all the classes ready to be able to replace production code with test doubles easily and KIF to be able to interact with the application user interface. The accessibility labels needed to interact with the UI using KIF are already configured.

Tasks

Your task as iOS Developer is to write all the UI tests needed to check if the Application UI is working as it should.

This repository is ready to build the application, pass the checkstyle and your tests in Travis-CI environments.

Our recommendation for this exercise is:

  • Before starting

    1. Fork this repository.
    2. Checkout kata-super-heroes branch.
    3. Run pod repo update
    4. Run pod install
    5. Open KataSuperHeroes.xcworkspace
    6. Execute the application, explore it manually and make yourself familiar with the code.
    7. Execute SuperHeroesViewControllerTests and watch the only test it contains pass.
  • To help you get started, these are some test cases for SuperHeroesViewControllerTests:

    1. Setup mocked SuperHeroesRepository in SuperHeroesViewControllerTests to return a list of some Super Heroes.
    2. Test that TableView is listing the correct number of elements when SuperHeroesRepository returns a list of some Super Heroes.
    3. Test that each of this elements contains the correct Super Hero name.

Considerations

  • If you get stuck, master branch contains already solved tests for SuperHeroesViewControllerTests and SuperHeroViewControllerTests

Extra Tasks

If you've covered all the application functionality using UI tests try to continue with the following tasks:

  • Add a pull to refresh mechanism to SuperHeroesViewController and test it.
  • Modify SuperHeroDetailViewController to handle an error case where the name of the super hero used to start this ViewController does not exist and show a message if this happens.
  • Modify the project to handle connection errors and show a message to indicate something went wrong.

Documentation

There are some links which can be useful to finish these tasks:

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].