Section 17.5. Adding to the Storytests


17.5. Adding to the Storytests

Mitra and Don got together to write some further tests for the template stories. They quickly wrote the test shown in Figure 17.8, which allows for more than one item per guest.

Figure 17.8. Template with Less than One Item

create template

coffee break

one

coffee dispenser

for

20

people

one

hot water dispenser

for

20

people

one

coffee table

for

40

people

one

cup

for

0.9

people


They then used that template, "coffee break," to test that the number of rental items was rounded up. Don calculated out loud: "With 21 guests, there will be 21 divided by 20, which is 1.05. We round that up to 2. With cups, there will be 21 divided by 0.9, which is 23.33. That rounds up to 24." This resulted in the test shown in Figure 17.9.

Figure 17.9. Template with Rounding


As these tests were completed, they were passed on to the programmers, who used them in the implementation of the new stories in RentEz. Further storytests were developed over the next 3 weeks and these included some ColumnFixture tables for testing rounding with a variety of examples.



    Fit for Developing Software. Framework for Integrated Tests
    Fit for Developing Software: Framework for Integrated Tests
    ISBN: 0321269349
    EAN: 2147483647
    Year: 2005
    Pages: 331

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net