Learn Rails testing for your applications with these testing fundamentals. Brush up on testing best practices with Rails Testing for Zombies.
Course Overview
Intro to Test::Unit
1 Video - 9 Challenges
Testing philosophies, overview of Test Unit, TDD (Test Driven Development), and using assertions
Model Testing
1 Video - 8 Challenges
Preparing the database, running tests, using fixtures, and testing relationships
Cleaning It Up
1 Video - 6 Challenges
Writing custom assertions, using Test Helper, and introducing Shoulda
Mocks & Stubs
1 Video - 6 Challenges
Understanding and using mocks and stubs with Mocha
Integration Testing
1 Video - 6 Challenges
Rails integration commands, integration testing with Capybara, and writing and using helper methods
Using Factories
1 Video - 6 Challenges
Creating factories, adding associations between factories, and implementing factories in your tests
Course Prerequisites
- Intermediate Ruby Knowledge
- Intermediate Programming Knowledge
The Professor
Nathaniel Bibler
Nate is a software developer who likes to focus on large, multi-part systems and APIs. Sometimes we'll find him at his lab station, alone, in the dark, drooling over the documentation for someone's crazy new web service. That, or reconfiguring a web server, or trying to shave 3 more bytes off of a graphic. With a steady diet of coffee and cookies, he can turn out some amazing things.
Enroll yourself or your team in Code School and get unlimited access to all courses, Code TV screencasts, build your report card, and more.
16 Reviews
-
rahult
Before finishing this course I was mainly focusing on writing unit tests using fixtures. Now the whole world has turned up side down. Factories, Integration testing, Capybara :-) so happy.
-
stevecastaneda
This course felt like a very solid intro, and left me wanting to research more into using Factory Girl and even RSpec down the line once I get the hang of things. I wish it had a bit more on test driven development, but this course did teach me most of what I needed to know to embark on that journey myself. The challenges seemed a bit more tougher on this one. I ran into syntax issues here and there, and wish the error messages were a bit more descriptive. On the test output tabs, many times the failing test message would get cut off. It would say something like, "expected this but ..." and never really said what my code was spitting out. Testing seems to be a bit more of a harder-to-grasp topic, as I had to re-watch a few of the videos to really get concepts down; especially stubs and mocks. Gregg mentioned this was likely in the videos though. I'm glad he did, because I didn't want to feel like I would be the only one who might get confused. Overall, love the courses and I feel like I've learned quite a bit in a short time frame. Thanks Envylabs!
-
Rob
This was a great course. While I've done testing before taking this course, I felt like I was missing a good foundation in testing principles. This helped solidify things in my brain. Thanks guys! Great job...
-
DevanB
As someone who learned testing with RSpec, it was nice to have a course that teaches Test::Unit. This course has plenty of challenging content to keep you learning and digging into Test::Unit. "Rails Testing for Zombies" even covers Shoulda, Capybara and FactoryGirl, which are helpful gems for utilizing Test::Unit testing. This is a must-do course for those that don't know Test::Unit!