#5 in Software testing books
Use arrows to jump to the previous/next product

Reddit mentions of Rails 4 Test Prescriptions: Build a Healthy Codebase

Sentiment score: 3
Reddit mentions: 3

We found 3 Reddit mentions of Rails 4 Test Prescriptions: Build a Healthy Codebase. Here are the top ones.

Rails 4 Test Prescriptions: Build a Healthy Codebase
Buying options
View on Amazon.com
or
    Features:
  • Pragmatic Bookshelf
Specs:
Height9.25195 Inches
Length7.51967 Inches
Number of items1
Weight1.38009376012 Pounds
Width0.7279513 Inches

idea-bulb Interested in what Redditors like? Check out our Shuffle feature

Shuffle: random products popular on Reddit

Found 3 comments on Rails 4 Test Prescriptions: Build a Healthy Codebase:

u/kristophmatthews · 3 pointsr/rails

Hi there, I recommend this book: Rails 4 Test Prescriptions. https://www.amazon.com/Rails-Test-Prescriptions-Healthy-Codebase/dp/1941222196 It is the best book on testing I've ever read. In my experience, understanding how to write tests was not difficult. It was getting into the habit of testing, and understanding when to write tests and when not to that was a challenging art form. Hope this helps.

u/jasonswett · 3 pointsr/rails

> I am a relatively new to development

If you're new to development, it's hard enough just to learn Rails by itself. In addition to the Rails concepts (e.g. ActiveRecord, view rendering, etc.) there's Ruby, databases/SQL, servers, HTML, CSS and JavaScript. Even if you're already comfortable with all those things, it's pretty hard to throw testing into the mix. When I first got started my question was, "What do I even test?" Do I write unit tests? Integration tests? View tests? Controller tests?

My advice would be to forget about Rails for a little bit and just practice testing Ruby by itself for a while. Then, once you're comfortable with testing Ruby, it will be easier for you to go back and try to write some tests in Rails.

> What is your recommendation on if I should focus on rspec vs minitest?

A person could make technical arguments for either. Deciding which testing framework to use depends on your objectives. If you're teaching yourself testing to become a more marketable developer, then I would definitely recommend RSpec. Almost every Rails project I've worked on (20+ production projects) has used RSpec. Having said that, it's less important which tool you choose and more important that you have a solid understanding of testing principles. I personally chose RSpec and I'm glad I did.

Here are some testing resources I often come across:

Growing Object-Oriented Software, Guided by Tests (awesome book, highly recommended)

Rails 4 Test Prescriptions (just started it, seems good so far)

Working Effectively with Legacy Code (super good book and more relevant to testing than it might seem like)

Everyday Rails Testing with RSpec (haven't bought it yet but seen it recommended a lot)

Destroy All Software (just bought it today, seems good so far)

Lastly, I myself created what I call a Ruby Testing Micro-Course designed to make it easy for people like you to get started with testing. Feel free to check that out and let me know what you think.

u/bridgesro · 2 pointsr/learnprogramming

The book I bought was Rails 4 Test Prescriptions, which explains test-driven development but is very Rails-centric. I had also been looking at BDD In Action, which has good reviews. I can't vouch for it personally but it may be worth looking into.