Java Unit Testing with JUnit 5: Test Driven Development with JUnit 5
Shekhar Gulati, Rahul Sharma
- 出版商: Apress
- 出版日期: 2017-11-12
- 售價: $2,780
- 貴賓價: 9.5 折 $2,641
- 語言: 英文
- 頁數: 151
- 裝訂: Paperback
- ISBN: 1484230140
- ISBN-13: 9781484230145
-
相關分類:
Java 程式語言、Java 相關技術、JUnit、TDD 測試導向開發、軟體測試、Unit Test 單元測試
海外代購書籍(需單獨結帳)
相關主題
商品描述
Explore the new way of building and maintaining test cases with Java test driven development (TDD) using JUnit 5. This book doesn't just talk about the new concepts, it shows you ways of applying them in TDD and Java 8 to continuously deliver code that excels in all metrics.
Unit testing and test driven development have now become part of every developer's skill set. For Java developers, the most popular testing tool has been JUnit, and JUnit 5 is built using the latest features of Java. With Java Unit Testing with JUnit 5, you'll master these new features, including method parameters, extensions, assertions and assumptions, and dynamic tests. You'll also see how to write clean tests with less code.
This book is a departure from using older practices and presents new ways of performing tests, building assertions, and injecting dependencies.
What You Will Learn
- Write tests the JUnit 5 way
- Run your tests from within your IDE
- Integrate tests with your build and static analysis tools
- Migrate from JUnit 4 to JUnit 5
Who This Book Is For
Java developers both with and without any prior unit testing experience.
商品描述(中文翻譯)
探索使用Java測試驅動開發(TDD)和JUnit 5建立和維護測試案例的新方法。本書不僅談論新概念,還展示了如何在TDD和Java 8中應用這些概念,以持續交付在所有指標上表現出色的代碼。
單元測試和測試驅動開發現在已成為每個開發人員的技能之一。對於Java開發人員來說,最受歡迎的測試工具是JUnit,而JUnit 5是使用Java的最新功能構建的。通過《Java單元測試與JUnit 5》,您將掌握這些新功能,包括方法參數、擴展、斷言和假設,以及動態測試。您還將了解如何以更少的代碼編寫乾淨的測試。
本書與使用舊實踐的方法不同,介紹了執行測試、構建斷言和注入依賴的新方法。
您將學到什麼:
- 以JUnit 5的方式編寫測試
- 從IDE內運行測試
- 將測試與構建和靜態分析工具集成
- 從JUnit 4遷移到JUnit 5
本書適合對單元測試有或沒有任何經驗的Java開發人員。