Test-driven iOS development

Source: Internet
Author: User

Test-driven iOS development
Basic Information
Original Title: Test-driven iOS development
By (US) Graham Lee
Translator: love flying
Press: Machinery Industry Press
ISBN: 9787111399193
Mounting time:
Published on: February 1, October 2012
Start: 16
Page number: 1
Version: 1-1
Category: Computer> Software and programming> mobile development> iPhone
Computer> Software and programming> integration> advanced programming language design

More about test-driven iOS development

Introduction
Books
Computer books
Test-driven iOS development is the only authoritative tutorial that explains how to apply the test-driven development method to iOS development, from the perspectives of testing tools, test-driven development methods and techniques, and software design based on test-driven development methods, the combination of test-driven development methods and iOS development is perfectly presented, not only can IOS developers quickly master test-driven development methods, but also achieve a good balance between product requirements, software design, test effectiveness and development efficiency.
The book consists of 13 chapters: Chapter 1st briefly introduces the general knowledge of software testing and the purpose of software testing; Chapter 2nd describes how to use test-driven development and unit testing to achieve this goal; chapter 3rd describes how to design and compile unit tests. Chapter 4th describes how to use the ocunit testing framework bound to Apple's development tools; chapter 1 illustrates how to evolve from the initial requirement specification to the final product during IOS application development; Chapter 2 describes how to implement the data model extracted from the requirement description; chapter 2 describes the business logic of the application. Chapter 7th describes how to design and implement the network communication function for the browseoverflow application based on test cases. Chapter 8th describes how to compile the View Controller code, let the browseoverflow program present this information to the user; Chapter 10th integrates the above classes to implement a fully functional and functioning application; chapter 11th describes some design paradigms used to remove dependencies between classes, code runtime environment dependencies, and thread dependencies. Chapter 12th answers the situations in which TDD development is appropriate; chapter 2 looks forward to the industry More novel functions, some extensions to existing technologies, and some useful development tools.
Test-driven iOS development is suitable for software developers and programmers engaged in IOS testing drivers.
Directory
Test-driven iOS development
Translator's preface
Preface
Chapter 2 Introduction to software testing and Unit Testing 1
1.1 Goal 1 of software testing
1.2 who will test the software? 2
1.3 When to perform software testing 5
1.4 test example 6
1.5 applicable scope of Unit Test 7
1.6 significance of test-driven development for iOS developers 10
Chapter 2 test-driven development skills 11
2.1 test first 11
2.2 "failure, success, reconstruction" trilogy 13
2.3 design an easy-to-test application 15
2.4 more refactoring knowledge 16
2.5 do not implement functions not currently available 17
2.6 testing before, during, and after encoding 19
Chapter 2 How to Write unit test 21
3.1 requirement 21
3.2 run code 22 using known input data
3.3 check whether the running result meets the expectation 24
3.4 verification result 24
3.5 make the test code more readable 26
3.6 organize multiple test cases 27
3.7 refactoring 30
3.8 conclusion 32
Chapter 1 test tool 33
4.1 ocunit testing framework 33 attached to xcode
4.2 ocunit alternative solution 43
4.2.1 gtm43
4.2.2 ghunit44
4.2.3 catch45
4.2.4 ocmock46
4.3 continuous integration tool 49
4.3.1 hudson50
4.3.2 cruisecontrol53
4.4 conclusion 54
Chapter 5 test-driven development for iOS apps 55
5.1 Product objective 55
5.2 case 56
5.3 execution plan 58
5.4 Start Program Creation 59
Chapter 1 Data Model 61
6.1 topic category 61
6.2 Question class 67
6.3 person class 69
6.4 associate the Question class with other classes 70
6.5 answer class 74
Chapter 1 application logic 79
7.1 execution plan 79
7.2 create a question object 80
7.3 construct a question object with JSON data 93
Chapter 2 network-related code 8th
8.1 nsurlconnection class design 103
8.2 implement stackoverflowcommunicator class 105
8.3 conclusion 115
Chapter 4 View Controller 9th
9.1 class structure 116
9.2 View Controller class 117
9.3 topictabledatasource class and topictabledelegate class 121
9.4 create a new controller object through an existing View Controller 137
9.5 data source in the question list 146
9.6 next task 157
Chapter 4 integrate all parts 10th
10.1 complete application workflow 158
10.2 show user avatar 172
10.3 finishing and cleaning 176
10.4 release application 186
Chapter 1 Software Design for test-Driven Development 11th
11.1 design the interface instead of 187
11.2 use commands instead of query 189
11.3 concise and focused classes and Methods 190
11.4 encapsulation 191
11.5 higher usage proportion 191
11.6 testing concurrent code 192
11.7 don't play the game without the need of smart 193
11.8 give priority to wide and light inheritance systems 194
11.9 summary 194
Chapter 2 test-driven development in existing projects 12th
12.1 The first test case is the most important 195
12.2 making code easier to test by refactoring 196
12.3 writing tests makes code easier to refactor 198
12.4 do I really need to write so many test cases? 199
Chapter 2 test-driven development prospects 13th
13.1 build test cases with a series of input and output values 201
13.2 behavior-driven development 202
13.3 automatically generate test cases 203
13.4 automatically generate code 205 that can pass the test
13.5 summary 206

This book is from: China Interactive publishing network

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.