- C# and .NET Core Test Driven Development
- Ayobami Adewole
- 252字
- 2021-06-25 22:00:29
Benefits of TDD
TDD, when done correctly and appropriately, can give a good return on investment as it facilitates the development of self-testing code, which yields robust software applications with fewer or no bugs. This is because most of the bugs and issues that might appear in production would have been caught and fixed during the development stage.
Documenting the source code is a good coding practice, but in addition to source code documentation, tests are miniature documentations of the source code as they serve as a quick way to understand how a piece of code works. The test will show the expected input together with the expected output or outcomes. The structure of an application can be easily understood from the tests, as there will be tests for all the objects as well as tests for the methods of the objects, showing their usage.
Practicing TDD correctly and continuously helps you to write elegant code with good abstraction, flexible design, and architecture. This is true because, to effectively test all parts of an application, the various dependencies need to be broken down into components that can be tested in isolation and later tested when integrated.
What makes a code clean is when the code has been written using best industry standards, can be easily maintained, is readable, and has tests written to validate its consistent behavior appropriately . This indicates that a code without testing is a bad code as there is no specific way of directly verifying its integrity.
- Learning NServiceBus(Second Edition)
- Python程序設計(第3版)
- jQuery從入門到精通 (軟件開發視頻大講堂)
- 精通API架構:設計、運維與演進
- 精通網絡視頻核心開發技術
- Java高并發核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- HTML+CSS+JavaScript網頁設計從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Web性能實戰
- 微信小程序開發實戰:設計·運營·變現(圖解案例版)
- Java并發編程之美
- ASP.NET 4.0 Web程序設計
- Unity Android Game Development by Example Beginner's Guide
- Design Patterns and Best Practices in Java
- Android熱門應用開發詳解
- Leaflet.js Essentials