From the course: Ruby: Testing with RSpec

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Other tools

Other tools - Ruby Tutorial

From the course: Ruby: Testing with RSpec

Start my 1-month free trial

Other tools

- In this movie, I'm going to suggest a handful of other tools that might be helpful to you while testing. All of them can be found on the internet by searching for the tool name, or for the tool name plus RSpec. The first tool that we already talked about back in the RSpec with Ruby on Rails chapter is shoulda-matchers. These are matchers for testing common Ruby on Rails functionality such as relationships and validations. They're very helpful. Second, we have simplecov. Cov is short for coverage. It watches as your test suite runs and then it generates code coverage reports at the end. It tells you how much of your code has a corresponding test case. So, you might have a customer class and simplecov will tell you that you have test written for seventy five percent of the code in that class and you'll be able to see the areas of code that are still not being covered by test examples. Next, we have timecop. Timecop makes it easy to work with time in your tests. We already saw how we…

Contents