All Projects → Karumi → KataTODOApiClientIOS

Karumi / KataTODOApiClientIOS

Licence: Apache-2.0 license
TODO API Client Kata for iOS Developers. The main goal is to practice integration testing using Nocilla and Nimble.

Programming Languages

swift
15916 projects
shell
77523 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to KataTODOApiClientIOS

KataTODOApiClientKotlin
TODO API Client Kata for Kotlin Developers. The main goal is to practice integration testing using MockWebServer
Stars: ✭ 59 (+195%)
Mutual labels:  training
TIWAP
Totally Insecure Web Application Project (TIWAP)
Stars: ✭ 137 (+585%)
Mutual labels:  training
training-kentico-k12
Kentico CMS/EMS MVC training website
Stars: ✭ 24 (+20%)
Mutual labels:  training
kaldi ag training
Docker image and scripts for training finetuned or completely personal Kaldi speech models. Particularly for use with kaldi-active-grammar.
Stars: ✭ 14 (-30%)
Mutual labels:  training
angular
Repository for my tutorial course: Learning AngularJS on LinkedIn Learning and Lynda.com. http://raybo.org/angular
Stars: ✭ 79 (+295%)
Mutual labels:  training
workshopctl
A tool to run workshops with
Stars: ✭ 38 (+90%)
Mutual labels:  training
carte-uso
Cartea "Utilizarea sistemelor de operare"
Stars: ✭ 18 (-10%)
Mutual labels:  training
PathView
Simulate the running route of each player on the playground, and can be timed with a stopwatch
Stars: ✭ 5 (-75%)
Mutual labels:  training
r intro bc stats
An Introduction to R and RStudio with the tidyverse delivered at BC Stats
Stars: ✭ 31 (+55%)
Mutual labels:  training
AndroidAnimations
This is the project where we will analyze study and put into practice how to work with animations in Android
Stars: ✭ 22 (+10%)
Mutual labels:  training
gitworkshop
Git Workshop covering git essentials & advanced topics
Stars: ✭ 15 (-25%)
Mutual labels:  training
ansible-traininglab
Dockerized Ansible Training Lab
Stars: ✭ 16 (-20%)
Mutual labels:  training
go-learning
My Golang training material for testing smaller Go concepts and ideas.
Stars: ✭ 27 (+35%)
Mutual labels:  training
gruntworkflows
Repository for my tutorial course: Grunt.js Web Workflows on LinkedIn Learning and Lynda.com.
Stars: ✭ 28 (+40%)
Mutual labels:  training
restful-booker-platform
A SaaS platform used for various test automation training
Stars: ✭ 72 (+260%)
Mutual labels:  training
admin-training
Galaxy Admin Training
Stars: ✭ 55 (+175%)
Mutual labels:  training
KataContactsKotlin
KataContacts written in Kotlin. The main goal is to practice Clean Architecture Development
Stars: ✭ 47 (+135%)
Mutual labels:  training
pwa-workshop
Workshop: Turning a regular website into a Progressive Web Application
Stars: ✭ 41 (+105%)
Mutual labels:  training
coffee-and-coding
A resource repo for coffee-and-coding sessions in ONS
Stars: ✭ 18 (-10%)
Mutual labels:  training
stelligent-u
Templates and code for Stelligent U lessons
Stars: ✭ 92 (+360%)
Mutual labels:  training

Karumi logo KataTODOApiClient for iOS. Build Status

  • We are here to practice integration testing using HTTP stubbing.
  • We are going to use OHHTTPStubs to simulate a HTTP server.
  • We are going to use Nimble to perform assertions.
  • We are going to practice pair programming.

Getting started

This repository contains an API client to interact with a remote service we can use to implement a TODO application.

This APIClient is based on one class with name TODOAPIClient containing some methos to interact with the API. Using this class we can get all the tasks we have created before, get a task using the task id, add a new task, update a task or delete an already created task.

The API client has been implemented using a networking framework named Alamofire. Review the project documentation if needed.

Tasks

Your task as iOS Developer is to write all the integration tests needed to check if the API Client 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-todo-api-client branch.
    3. Execute the repository playground and make yourself familiar with the code.
    4. Execute TODOAPIClientTests and watch the only test it contains pass.
  • To help you get started, these are some tests already written at TODOAPIClientTests class. Review it carefully before to start writing your own tests. Here you have the description of some tests you can write to start working on this Kata:

    1. Test that the Accept and ContentType headers are sent.
    2. Test that the list of TaskDTO instances obtained invoking the method getAllTasks contains the expected values.
    3. Test that if there is no connection the error returned by any method call is TODOAPIClientError.NetworkError.
    4. Test that adding a task the body sent to the server is the correct one.

Considerations

  • If you get stuck, master branch contains all the tests already solved.

Extra Tasks

If you've covered all the application functionality using integration tests you can continue with some extra tasks:

  • Replace some integration tests we have created with unit tests. A starting point could be the mapErrorToTODOAPIClientError function or the DefaultHeadersInterceptor class.
  • Create your own API client to consume one of the services described in this web: http://jsonplaceholder.typicode.com/

Documentation

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

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