Rails Test Prescriptions

Rails Test Prescriptions pdf epub mobi txt 電子書 下載2025

Noel Rappin is a Senior Consultant at Obtiva. A Rails developer for five years, Noel has spoken at RailsConf and Windy City Rails, and is the author of Professional Ruby on Rails from Wrox Press. A blog relating to this book can be found at http://www.railsrx.com.

出版者:The Pragmatic Bookshelf
作者:Noel Rappin
出品人:
頁數:350
译者:
出版時間:October 15, 2010
價格:$22.00
裝幀:
isbn號碼:9781934356647
叢書系列:
圖書標籤:
  • Rails 
  • Test 
  • Ruby 
  • Ruby紅寶石 
  • Programming 
  •  
想要找書就要到 小美書屋
立刻按 ctrl+D收藏本頁
你會得到大驚喜!!

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.

Getting Started with Testing in Rails

The Goals of Automated Developer Testing excerpt

The Basics of Rails Testing

Writing Your First Tests excerpt

TDD, Rails Style

Testing Application Data

Testing Models with Rails Unit Tests

Creating Model Test Data with Fixtures and Factories

Using Mock Objects excerpt

Testing User-Facing Layers

Testing Controllers with Functional Tests

Testing Views

Testing JavaScript and Ajax

Testing Framework Extensions

Write Cleaner Tests with Shoulda and Contexts

RSpec

Testing Everything All Together

Testing Work Flow with Integration Tests

Clean Up Integration Tests with Webrat

Acceptance Testing with Cucumber

Browser Testing with Selenium

Testing Your Tests

Load Testing and Performance Testing

Using Autotest as a Test Runner

Using Rcov to Measure Test Coverage

Fix Slow Tests

Help! My Test Is Failing

Testing a Legacy Application

Testing Style and Structure

Appendices

Sample Application Setup

具體描述

讀後感

評分

評分

評分

評分

評分

用戶評價

评分

略弱,不用看瞭……

评分

略弱,不用看瞭……

评分

講瞭一堆測試工具的使用,對TDD/BDD方法學沒有太多的介紹,在IT技術迅猛發展的今天,這種類型的書其實很快就會過時的。just so so……

评分

略弱,不用看瞭……

评分

講瞭一堆測試工具的使用,對TDD/BDD方法學沒有太多的介紹,在IT技術迅猛發展的今天,這種類型的書其實很快就會過時的。just so so……

本站所有內容均為互聯網搜索引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度google,bing,sogou

© 2025 book.quotespace.org All Rights Reserved. 小美書屋 版权所有