Test-Driven Development with C++: A simple guide to writing bug-free Agile code
Tanner, Abdul Wahid
- 出版商: Packt Publishing
- 出版日期: 2022-11-18
- 售價: $1,640
- 貴賓價: 9.5 折 $1,558
- 語言: 英文
- 頁數: 430
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1803242000
- ISBN-13: 9781803242002
-
相關分類:
C++ 程式語言、TDD 測試導向開發、Agile Software
立即出貨 (庫存=1)
買這商品的人也買了...
-
$880$695 -
$2865G 與車聯網 — 基於移動通信的車聯網技術與智能網聯汽車
-
$3525G時代:什麼是5G,它將如何改變世界
-
$474$450 -
$2,200$2,090 -
$560$437 -
$790$624 -
$534$507 -
$2,390$2,271 -
$654$621 -
$1,520$1,444 -
$894$849 -
$658深入理解高並發編程:核心原理與案例實戰
-
$1,700$1,615 -
$654$621 -
$2,224Building Evolutionary Architectures: Automated Software Governance, 2/e
-
$708$673 -
$774$735 -
$1,580$1,501 -
$509數以達理:量化研發管理指南
-
$880$695 -
$2,185$2,070 -
$301基於近鄰思想和同步模型的聚類算法
-
$2,233$2,115 -
$654$621
相關主題
商品描述
Learn how to write a simple testing framework and extend it to drive the design of your logging library
Key Features
- Learn how to solve various challenges when testing in C++ with the help of effective solutions
- Develop a logging library with enhancements
- Drive better code designs with effective tests
Book Description
Modern, standard C++ is all that is needed to create a small and practical testing framework that will improve the design of any project. This allows you to think about how the code will be used, which is the first step in designing intuitive interfaces. TDD is a modern balanced software development approach that helps to create maintainable applications, provide modularity in design, and write minimal code that drastically reduces defects. With the help of this book, you'll be able to continue adding value when designs need to change by ensuring that the changes don't break existing tests.
In this book, developers working with test-driven development (TDD) will be able to put their knowledge to work by writing a simple testing framework and then using it to drive the design of a logging library. The book will help you enhance your software development skills with test cases. You'll understand how to design and implement test cases. The chapters will also show you how to utilize the TDD approach to be more productive in software development than attempting to code in large unstructured steps.
By the end of this book, you'll have gained knowledge of TDD and testing and also built a working logging library.
What you will learn
- Understand how to develop software using TDD
- Keep the code for the system as error-free as possible
- Refactor and redesign code confidently
- Communicate the requirements and behaviors of the code with your team
- Understand the differences between unit tests and integration tests
- Use TDD to create a minimal viable testing framework
Who this book is for
This book is for C++ developers already familiar with and using C++ for daily tasks who want to improve their skillset. You don't need to be an expert but you should already have some knowledge of modern C++ and how to use templates to get the most out of this book.
商品描述(中文翻譯)
學習如何撰寫一個簡單的測試框架並擴展它以驅動日誌庫的設計。
主要特點:
- 學習如何通過有效的解決方案解決 C++ 測試中的各種挑戰。
- 開發具有增強功能的日誌庫。
- 通過有效的測試驅動更好的代碼設計。
書籍描述:
現代、標準的 C++ 就足夠創建一個小而實用的測試框架,這將改善任何項目的設計。這使您可以思考代碼將如何使用,這是設計直觀界面的第一步。測試驅動開發(TDD)是一種現代平衡的軟件開發方法,有助於創建可維護的應用程序,提供設計的模塊化,並編寫極少的代碼,從而大大減少缺陷。通過本書的幫助,您將能夠在設計需要更改時繼續添加價值,確保更改不會破壞現有的測試。
在本書中,使用測試驅動開發(TDD)的開發人員將能夠通過撰寫一個簡單的測試框架並使用它來驅動日誌庫的設計來應用他們的知識。本書將幫助您通過測試案例提升軟件開發技能。您將了解如何設計和實施測試案例。本書的章節還將向您展示如何利用 TDD 方法在軟件開發中比嘗試以大型非結構化步驟編碼更具生產力。
通過閱讀本書,您將獲得有關 TDD 和測試的知識,並構建一個可工作的日誌庫。
您將學到什麼:
- 理解如何使用 TDD 開發軟件。
- 使系統代碼盡可能無錯誤。
- 自信地重構和重新設計代碼。
- 與團隊溝通代碼的需求和行為。
- 理解單元測試和集成測試之間的差異。
- 使用 TDD 創建一個最小可行的測試框架。
本書適合對 C++ 有一定了解並且每天使用 C++ 進行任務的開發人員,他們希望提升自己的技能。您不需要成為專家,但應該已經具備一些現代 C++ 的知識,並知道如何使用模板以充分利用本書。
目錄大綱
1. Desired Test Declaration
2. Test Results
3. The TDD process
4. Adding Tests to a Project
5. Adding More Confirm Types
6. Explore Improvements Early
7. Test Setup and Teardown
8. What Makes a Good Test?
9. Using Tests
10. The TDD Process In Depth
11. Managing Dependencies
12. Creating Better Test Confirmations
13. How to Test Floating-Point and Custom Values
14. How to Test Services
15. How to Test With Multiple Threads
目錄大綱(中文翻譯)
1. 測試需求聲明
2. 測試結果
3. 測試驅動開發(TDD)流程
4. 將測試添加到專案中
5. 添加更多確認類型
6. 早期探索改進方法
7. 測試設置和拆卸
8. 什麼是好的測試?
9. 使用測試
10. 深入了解TDD流程
11. 管理依賴關係
12. 創建更好的測試確認
13. 如何測試浮點數和自定義值
14. 如何測試服務
15. 如何使用多線程進行測試