Learn Rails testing for your applications with these testing fundamentals. Brush up on testing best practices with Rails Testing for Zombies.
Level 1 Free Level Test Unit 1 Video | 9 Challenges
Testing philosophies, overview of Test Unit, TDD (Test Driven Development), and using assertions
Level 2 Model Testing 1 Video | 8 Challenges
Preparing the database, running tests, using fixtures, and testing relationships
Level 3 Cleaning it up 1 Video | 6 Challenges
Writing custom assertions, using Test Helper, and introducing Shoulda
Level 4 Mocks and Stubs 1 Video | 6 Challenges
Understanding and using mocks and stubs with Mocha
Level 5 Integration Tests 1 Video | 6 Challenges
Rails integration commands, integration testing with Capybara, and writing and using helper methods
Level 6 Using Factories 1 Video | 6 Challenges
Creating factories, adding associations between factories, and implementing factories in your tests
About The Professor
Nate is a software developer who likes to focus on large, multi-part systems and APIs. He can often be found at his lab station drooling over documentation, reconfiguring a web server, or trying to shave 3 more bytes off a graphic.
This course should take approximately 6 - 8 hours.
This course teaches FactoryGirl 2.2.0.
Course Reviews (16)
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.
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!
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...
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!