Rails Test Prescriptions (Paperback)
暫譯: Rails 測試處方籤 (平裝本)
Noel Rappin
- 出版商: Pragmatic Bookshelf
- 出版日期: 2011-03-10
- 定價: $1,190
- 售價: 1.7 折 $199
- 語言: 英文
- 頁數: 350
- 裝訂: Paperback
- ISBN: 1934356646
- ISBN-13: 9781934356647
-
相關分類:
Ruby、TDD 測試導向開發
-
其他版本:
Rails 5 Test Prescriptions: Build a Healthy Codebase
買這商品的人也買了...
-
深入淺出設計模式 (Head First Design Patterns)$880$695 -
Visual Basic 2005 程式設計範例教本$580$493 -
iPhone 創意程式設計家, 2/e (適用 SDK 3、SDK 4)$530$419 -
Thinking in Java 中文版 (Thinking in Java, 4/e)$960$758 -
$399CompTIA Security+Study Guide: Exam SY0-201, 4/e (Paperback) -
全球最強 VMware vSphere 4 企業環境建構$860$731 -
鳥哥的 Linux 私房菜-基礎學習篇, 3/e$820$648 -
$1,050CCNP ROUTE 642-902 Official Certification Guide (Hardcover) -
Windows Server 2008 R2 網路管理與架站$650$514 -
Visual C# 2010 程式設計經典$650$514 -
PHP 6 & MySQL 6 網頁資料庫程式設計演繹$600$474 -
最嚴選!C# 案例模組開發講座$580$458 -
Microsoft SharePoint 2010 企業內容管理與網頁設計$950$751 -
前進 Android Market!Google Android SDK 實戰演練$850$672 -
ASP.NET 4.0 專題實務 II-範例應用與 4.0 新功能, 2/e$750$593 -
Struts 2 + Hibernate + Spring 整合開發技術詳解$720$612 -
Google Android SDK 開發範例大全, 3/e$950$751 -
Office 2010 實戰技─為上班族、公務機關寫的範例書$480$379 -
HTML5: 建置與執行 (HTML5: Up and Running )$420$332 -
App 程式設計入門-iPhone、iPad, 2/e$490$387 -
《超強圖解》前進 Android Market!Google Android SDK 實戰演練, 2/e (適用2.X/3.X/4.X)$750$593 -
iOS 創意程式設計家─ iPhone + iPad 跨平台通用, 3/e$580$458 -
全民做遊戲-Unity 跨平台遊戲開發寶典$720$612 -
JavaScript 設計模式 (JavaScript Patterns)$480$379 -
Android 系統原理深入解析$520$442
商品描述
Your Ruby on Rails application is sick. It's got bugs. Nobody remembers what that tricky piece of code was supposed to do, and nobody can tell what it actually does. Deadlines are looming, but every time you make the slightest change to the code, something else breaks.
You need Test-Driven Development (TDD), a proven process for improving the design, maintainability, and long-term viability of software. In TDD, the tests come first, and then code is written to match the expectation of the test. Using TDD means writing better code faster.
Ruby on Rails has unparalleled support for TDD. In addition to the tools that Rails has built-in, a large and thriving testing community adds new tools at an accelerating rate. Rails Test Prescriptions is your guide to the entire Rails testing ecosystem.
Containing both practical code examples and discussion of why testing works, this book starts with the most basic features delivered as part of core Ruby on Rails. Once you've integrated those features into your coding practice, you'll want to use popular third-party testing tools such as RSpec, Shoulda, Cucumber, Factory Girl, and Rcov. Rails Test Prescriptions will show you how to use these tools and when they are appropriate. Rails Test Prescriptions will cover both the current Rails 2.3.x version as well as the initial 3.0 release.
If you are a Rails programmer who tests code, this book is an invaluable guide to the latest in available testing tools. If you are a Rails programmer who doesn't test code, then start testing immediately: this book can help.
商品描述(中文翻譯)
您的 Ruby on Rails 應用程式出現問題。它有錯誤。沒有人記得那段棘手的程式碼原本應該做什麼,也沒有人能告訴它實際上做了什麼。截止日期迫在眉睫,但每當您對程式碼進行最小的更改時,其他東西就會壞掉。
您需要測試驅動開發(Test-Driven Development, TDD),這是一個經過驗證的過程,用於改善軟體的設計、可維護性和長期可行性。在 TDD 中,測試是第一步,然後編寫程式碼以符合測試的期望。使用 TDD 意味著更快地編寫更好的程式碼。
Ruby on Rails 對 TDD 提供了無與倫比的支持。除了 Rails 內建的工具外,龐大且蓬勃發展的測試社群以加速的速度添加新工具。《Rails Test Prescriptions》是您了解整個 Rails 測試生態系統的指南。
本書包含實用的程式碼範例以及為什麼測試有效的討論,從 Ruby on Rails 的核心功能開始。一旦您將這些功能整合到您的編碼實踐中,您將希望使用流行的第三方測試工具,如 RSpec、Shoulda、Cucumber、Factory Girl 和 Rcov。《Rails Test Prescriptions》將向您展示如何使用這些工具以及何時適合使用它們。《Rails Test Prescriptions》將涵蓋當前的 Rails 2.3.x 版本以及最初的 3.0 版本。
如果您是一名測試程式碼的 Rails 程式設計師,本書是最新可用測試工具的寶貴指南。如果您是一名不測試程式碼的 Rails 程式設計師,那麼立即開始測試:本書可以幫助您。
