Chapter 31. Emily's First FixtureProgrammers The tables that use this fixture code are given in Chapter 13. In starting to write fixtures for an existing application, it's good to build up experience step by step. It's likely to be easier to begin with fixtures for calculation tests. To start integrating the first Fit tables for late returns into RPS, we worked with Emily. She had worked with Don previously, in Chapter 13, to develop the tables. Emily started on a fixture for a calculating test table, as that was a good place to start. She was happy to change the application code to make the fixtures work without supporting tests, because that was what she was used to. It takes a while to realize that changing blind, without tests, is common but rather risky. It leaves incomplete work behind, which often needs to be tidied up later, when faults are found. Too often, such faults are found by the application's users. |