Rails 5 Test Prescriptions: Build a Healthy Codebase
Noel Rappin
- 出版商: Pragmatic Bookshelf
- 出版日期: 2018-03-27
- 售價: $1,840
- 貴賓價: 9.5 折 $1,748
- 語言: 英文
- 頁數: 406
- 裝訂: Paperback
- ISBN: 1680502506
- ISBN-13: 9781680502503
-
相關分類:
Ruby
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$1,000$660 -
$607Java 程序性能優化實戰
-
$620$409 -
$690$345 -
$620$490 -
$297CKA/CKAD 應試指南 : 從 Docker 到 Kubernetes 完全攻略
-
$620$489 -
$890$668 -
$500Qt Creator 快速入門, 4/e
-
$505自然語言處理的 Python 實踐
-
$594$564 -
$599$569 -
$356HBase入門與實踐(第2版)
-
$352人工神經網絡:模型、算法及應用
-
$301軟件項目開發實戰 — App 全棧
-
$454大數據分析師面試筆試寶典
-
$534$507 -
$479$455 -
$408物聯網鴻蒙系統App開發
-
$594$564 -
$654$621 -
$301邊緣計算
-
$1,080$853 -
$880$695 -
$580$406
相關主題
商品描述
Does your Rails code suffer from bloat, brittleness, or inaccuracy? Cure these problems with the regular application of test-driven development. You'll use Rails 5.1, Minitest 5, and RSpec 3.6, as well as popular testing libraries such as factory_girl and Cucumber. Updates include Rails 5.1 system tests and Webpack integration. Do what the doctor ordered to make your applications feel all better. Side effects may include better code, fewer bugs, and happier developers.
Your Ruby on Rails application is sick. Deadlines are looming, but every time you make the slightest change to the code, something else breaks. Nobody remembers what that tricky piece of code was supposed to do, and nobody can tell what it actually does. Plus, it has bugs. You need test-driven development: a process for improving the design, maintainability, and long-term viability of software.
With 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, work with popular third-party testing tools such as RSpec, Jasmine, Cucumber, and factory_girl. Test the component parts of a Rails application, including the back-end model logic and the front-end display logic. With Rails examples, use testing to enable your code to respond better to future change. Plus, see how to handle real-world testing situations.
This new edition has been updated to Rails 5.1 and RSpec 3.6 and contains full coverage of new Rails features, including system tests and the Webpack-based JavaScript setup.
What You Need:
Ruby 2.4, Rails 5.1