- 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.
推薦閱讀
- Instant QlikView 11 Application Development
- Building a Quadcopter with Arduino
- Oracle JDeveloper 11gR2 Cookbook
- Learning Apache Mahout Classification
- Spring+Spring MVC+MyBatis整合開(kāi)發(fā)實(shí)戰(zhàn)
- Mastering Android Game Development
- Django實(shí)戰(zhàn):Python Web典型模塊與項(xiàng)目開(kāi)發(fā)
- 零基礎(chǔ)學(xué)Scratch 3.0編程
- Redmine Cookbook
- Software Development on the SAP HANA Platform
- 基于GPU加速的計(jì)算機(jī)視覺(jué)編程:使用OpenCV和CUDA實(shí)時(shí)處理復(fù)雜圖像數(shù)據(jù)
- Hands-On Dependency Injection in Go
- Clojure Web Development Essentials
- 你好!Java
- SaaS攻略:入門、實(shí)戰(zhàn)與進(jìn)階