- Test-Driven iOS Development with Swift 4(Third Edition)
- Dr. Dominik Hauser
- 126字
- 2021-07-02 15:39:38
Red
You start by writing a failing test. It needs to test a required feature of the software product that is not already implemented or an edge case that you want to make sure is covered. The name red comes from the way most IDEs indicate a failing test. Xcode uses a red diamond with a white x on it.
It is very important that the test you write in this step initially fails. Otherwise, you can't ensure that the test works and really tests the feature that you want to implement. It could be that you have written a test that always passes and is, therefore, useless. Or, it is possible that the feature is already implemented. Either way, you gain insight into your code.
推薦閱讀
- Git Version Control Cookbook
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- Testing with JUnit
- 劍指Offer(專項突破版):數(shù)據(jù)結(jié)構(gòu)與算法名企面試題精講
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動畫(原書第3版)
- Internet of Things with Intel Galileo
- Flash CS6中文版應(yīng)用教程(第三版)
- R大數(shù)據(jù)分析實用指南
- NoSQL數(shù)據(jù)庫原理
- Terraform:多云、混合云環(huán)境下實現(xiàn)基礎(chǔ)設(shè)施即代碼(第2版)
- Learning Continuous Integration with TeamCity
- Visual Basic 6.0程序設(shè)計實驗教程
- 零基礎(chǔ)學(xué)HTML+CSS
- Modernizing Legacy Applications in PHP
- Instant GLEW