Section 10.7. Testing Parts of a List


10.7. Testing Parts of a List

It can sometimes be inconvenient to test all the elements of a list; we may be interested in the values of only one or more specific elements. A SubsetFixture table allows us to check the elements of interest.

For example, the last table in Figure 10.5 simply tests that each of the rows corresponds to elements in the actual list from the system under test. This table uses a header row, just as with RowFixture and ArrayFixture. Any extras in the actual list are ignored and are not shown as surplus.

Questions & Answers

Q1:

What if an expected row is missing with SubsetFixture?

A1:

It's handled the same as with RowFixture.

Note

The FitLibrary contains the fixtures introduced in this chapter, along with the FolderRunner for running test suites of HTML and spreadsheet files.

The FitLibrary was developed by Rick Mugridge and released through https://sourceForge.net/projects/fitlibrary in 2005.




    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