Slow tests got you down? As Ruby developers, you might watch a lot of tests run in a given day. So why not make it more fun? This talk takes a light-hearted approach to introducing you to an array of test reporters including MiniTest’s Pride, Fuubar, and Nyan Cat Formatter. In addition, it shows how easy it is to make your very own test reporter for both Rspec or Minitest so you can have a more enjoyable testing experience.
Wild test suites often contain inefficient or ineffective tests. Working with a code base full of these beasts is frustrating and time consuming. This safari will help you identify and hunt down common testing anti-patterns. Afterwards you’ll know how to approach a test suite full of beasts without losing your mind or your life.
RSpec is an open source testing tool for the Ruby programming language. Born under the banner of Behavior-Driven Development (BDD), it is designed to make Test-Driven Development a productive and enjoyable experience. RSpec aims to help you focus on the design and documentation aspects of the testing process.
Behavior-Driven Development (BDD9 and Acceptance Testing are heavily intertwined and in many aspects are one and the same. Both focus on starting at the outer layers of your application by concentrating on what matter to users; behavior.
Automating tests is an investment that is valuable as long as the investment is not too great. As such investing in automated testing tools can be great or bad depending on if your company really needs to automate. We want to get to the payback more quickly. The true investment is not only the cost of creating and maintaining automated tests. Watir is a family of libraries for testing web applications. Watir reduces the cost of creating automated tests that are maintainable. If we spend too much time fixing and debugging, we will never get the new features created, or we will abandon the automated tests temporarily.
Software tests never run fast enough. To improve this performance, this article presents a process called DMAIC (Define, Measure, Analyze, Improve, Control). It shows how to apply this approach with Cucumber, an open source Behavior Driven Development tool. Cucumber lets you describe how software should behave in plain text. The text is written in a business-readable domain-specific language and serves as requirements documentation and source of automated acceptance tests.
This guide presents the mechanisms available to test your Ruby on Rails application. After an introduction to software testing in the Ruby on Rails context, the guide explains how to perform unit testing on your models and functional testing for the controllers. The guide also explains how Rails provides a generator to create an integration test skeleton. At the end, the guide proposes other popular testing approaches and plugins that could be used to test Ruby on Rails applications.