Understand the Value and Cost of Tests
Explore effective testing strategies for Ruby on Rails views, focusing on balancing test value and cost. Understand how to implement system and unit tests that prioritize user flows to maintain app sustainability and reliability. Discover tactics to keep tests manageable and meaningful without over-testing.
We'll cover the following...
Overview
Testing can be a boon to sustainability, but it can also work against us. If tests are too brittle, duplicative, slow, or focused on the wrong things, the test suite will drag the team down. This chapter will introduce a basic testing strategy and then discuss some useful tactics for implementing that strategy around the view code we’ve been writing. This strategy and its tactics are based on certain values as they relate to software quality, so let’s state those first.
Tests give ...