All Projects → Karumi → KataScreenshotIOS

Karumi / KataScreenshotIOS

Licence: Apache-2.0 License
Screenshot 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

Labels

Projects that are alternatives of or similar to KataScreenshotIOS

carto-workshop
CARTO training materials
Stars: ✭ 81 (+406.25%)
Mutual labels:  training
workshoppers
Zero to Hero with Node.js Africa Code Guide for JavaScript and Node.js
Stars: ✭ 16 (+0%)
Mutual labels:  training
gitlab-ci-training
Skoleni Gitlab CI (CI/CD)
Stars: ✭ 18 (+12.5%)
Mutual labels:  training
KataSuperHeroesJetpack
SuperHeroes kata for Jetpack Developers in Kotlin
Stars: ✭ 47 (+193.75%)
Mutual labels:  training
Main
Management materials and content
Stars: ✭ 32 (+100%)
Mutual labels:  training
teuton
Infrastructure test, mainly useful for sysadmin teachers and making contests
Stars: ✭ 22 (+37.5%)
Mutual labels:  training
tensorpeers
p2p peer-to-peer training of tensorflow models
Stars: ✭ 57 (+256.25%)
Mutual labels:  training
traindown
Public site
Stars: ✭ 35 (+118.75%)
Mutual labels:  training
zwift-workout-file-reference
Reference documentation for the Zwift workout file format
Stars: ✭ 54 (+237.5%)
Mutual labels:  training
DeT
Dataset and Code for the paper "DepthTrack: Unveiling the Power of RGBD Tracking" (ICCV2021), and "Depth-only Object Tracking" (BMVC2021)
Stars: ✭ 39 (+143.75%)
Mutual labels:  training
newcomer
前端新人培训
Stars: ✭ 25 (+56.25%)
Mutual labels:  training
bigscience
Central place for the engineering/scaling WG: documentation, SLURM scripts and logs, compute environment and data.
Stars: ✭ 261 (+1531.25%)
Mutual labels:  training
championscurriculum
A training curriculum for teaching information security "champions" within small organisations and helping them conduct a basic assessment. (Work in progress)
Stars: ✭ 18 (+12.5%)
Mutual labels:  training
MaxibonKataKotlin
Maxibon kata for Kotlin Developers. The main goal is to practice property based testing.
Stars: ✭ 42 (+162.5%)
Mutual labels:  training
incubator-training
Apache training
Stars: ✭ 24 (+50%)
Mutual labels:  training
Multi-Person-Pose-using-Body-Parts
No description or website provided.
Stars: ✭ 41 (+156.25%)
Mutual labels:  training
Training
Defensive Origins Training Schedule
Stars: ✭ 33 (+106.25%)
Mutual labels:  training
python-training
👻 python-training
Stars: ✭ 11 (-31.25%)
Mutual labels:  training
cpluspluscourse
C++ Course Taught at CERN, from Sebastien Ponce (LHCb)
Stars: ✭ 19 (+18.75%)
Mutual labels:  training
Coder
求职信息 组队刷题 经验交流
Stars: ✭ 22 (+37.5%)
Mutual labels:  training

Karumi logo KataScreenshot for iOS. Build Status

You can compare this testing approach with a different testing strategy where the application UI is tested using KIF.


Getting started

This repository contains an iOS application showing 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 a screenshot testing framework to compare your application visual changes.

Remember that after any production code change you can record your screenshots again by changing the current scheme to Record Screenshots.

To verify the correct behaviour of your code just run your tests from the KataScreenshot scheme.

To be able to get a deterministic test scenario all our tests will be executed on the same emulated device. You can use the Travis-CI configuration to get the same emulator working on your computer.

Tasks

Your task as an 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-screenshot branch.
    3. Execute the application, explore it manually and make yourself familiar with the code.
    4. 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 the TableView is showing the super heroes obtained from the SuperHeroesRepository.
    3. Test the empty case is shown if there are no super heroes.

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. © 2017 MARVEL

#License

Copyright 2017 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].