- C# and .NET Core Test Driven Development
- Ayobami Adewole
- 183字
- 2021-06-25 22:00:31
Doing TDD the wrong way
As interesting as practicing TDD can be, it can also be wrongly done. Programmers new to TDD can sometimes write monster tests that are way too large and defeat the purpose of test brevity and being able to perform the TDD cycle quickly, leading to a waste of productive development time.
Partial adoption of the technique can also reduce the full benefit of TDD. In situations where only a few developers in a team use the technique and others don't, this will lead to fragmented code where a portion of code is tested and another portion is not, resulting in an unreliable application.
You should avoid writing tests for code that are naturally trivial or not required; for example, writing tests for object accessors. Tests should be run frequently, especially through the use of test runners, build tools, or continuous integration tools. Failing to run the tests often can lead to a situation where the true reflection of the state of the code base is not known even when changes have been made and components are probably failing.
- 企業(yè)級(jí)Java EE架構(gòu)設(shè)計(jì)精深實(shí)踐
- Building a RESTful Web Service with Spring
- Learning Elixir
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優(yōu)化計(jì)算
- Getting Started with Laravel 4
- Learning FuelPHP for Effective PHP Development
- 快人一步:系統(tǒng)性能提高之道
- ElasticSearch Cookbook(Second Edition)
- Mastering Akka
- INSTANT Adobe Edge Inspect Starter
- 軟件項(xiàng)目管理實(shí)用教程
- Swift High Performance
- 例說FPGA:可直接用于工程項(xiàng)目的第一手經(jīng)驗(yàn)
- Isomorphic Go
- Flutter之旅