Chapter 10. MacRuby testing
Software testing may not have the glamour and glory associated with building shiny and polished Mac apps, but it can save you headaches down the road. The expressiveness of Ruby and its rich testing frameworks and tools can help you with this process.
If you’ve done much Ruby development in the past, you’ve encountered the Ruby community’s fervor toward testing. There are multiple testing frameworks and many camps regarding strategies and methodologies. Rather than try to cover all the different tools available, we’re going to focus on the MiniTest framework and go over a few tips and tricks. We’ll take you through an introduction to MiniTest, setting it up in your project, choosing worthwhile things to test, and building MiniTest tests. By the end of this chapter, you’ll have a firm grasp on how to design and build test suites for more robust applications.