Professional Rails Testing: Tools and Principles
暫譯: 專業 Rails 測試:工具與原則
Swett, Jason
- 出版商: Independently Published
- 出版日期: 2024-10-07
- 售價: $1,260
- 貴賓價: 9.5 折 $1,197
- 語言: 英文
- 頁數: 214
- 裝訂: Quality Paper - also called trade paper
- ISBN: 9798339964247
- ISBN-13: 9798339964247
-
相關分類:
TDD 測試導向開發
海外代購書籍(需單獨結帳)
商品描述
Along with practices like object-oriented programming and version control, automated testing is one of the greatest innovations ever to be introduced to programming.
Professional Rails Testing shows how to use automated testing-especially test-driven development-to see programming from a whole new angle. You'll see not just what to do but exactly why to do it-and when to question conventional testing wisdom. When you fully embrace automated testing and make it a habit, you'll wonder how you ever coded any other way.
Topics covered include:
- Tests as specifications
- Test-driven development
- How to write meaningful tests
- How to write understandable tests
- Mocks and stubs
- Flaky tests and how to fix them
- Factory Bot, RSpec and Capybara
商品描述(中文翻譯)
隨著物件導向程式設計和版本控制等實踐的興起,自動化測試成為程式設計史上最偉大的創新之一。
《專業 Rails 測試》展示了如何使用自動化測試,特別是測試驅動開發,從全新的角度看待程式設計。你將不僅了解該做什麼,還會明白為什麼要這樣做,以及何時應該質疑傳統測試的智慧。當你完全接受自動化測試並將其變成習慣時,你會想知道自己以前是如何以其他方式編碼的。
涵蓋的主題包括:
- 測試作為規範
- 測試驅動開發
- 如何編寫有意義的測試
- 如何編寫易於理解的測試
- 模擬和存根
- 不穩定的測試及其修復方法
- Factory Bot、RSpec 和 Capybara