10.4. SetupWe now switch to the second example in Chapter 6. The test in Figure 6.5 on p. 45 starts with a ColumnFixture table that enters data for the rest of the test; this table is shown again in Figure 10.4.
Such data entry at the start of a test is a common pattern, as we'll see in Part II. However, Figure 10.4 makes use of a ColumnFixture table, which is better suited to testing calculations. We can eliminate the last column, which is not calculating anything, by using a SetUpFixture table, as shown in the second (set ups) table in Figure 10.5. This enters the discount group data that is held in the remainder of that table. The later tables in Figure 10.5 are discussed in the following sections. Figure 10.5. Discount: Various TablesTip FitNesse provides a similar fixture to SetUpFixture; this fixture is RowEntryFixture. Programmers The fixture code for the tests here is given in Section 28.7 on p. 239. Questions & Answers
|
Wednesday, November 18, 2009
Section 10.4. Setup
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment