Section 7.5. Exercises


7.5. Exercises

The following exercises assume that someone has set up the tools and application code to enable you to run Fit tests on a file or a set of files in a folder.

1.

Get one of the early example test tables, such as TestDiscount.xls (as discussed in Section 3.1 on p. 13). Run the test.

2.

Make some simple changes to the table so that passing tests now fail and vice versa. Run the test again.

3.

Now make some simple changes to the table such as entering data in the wrong format, to see what happens when things don't work properly. This will make it easier, later, to work out what may have caused a problem when the tests don't run as you expected.

4.

Now create a new file with a single table that uses the same fixture as in the previous exercises. Run it.

5.

Now create a new file with one or more tables that use a new fixture, which doesn't yet exist. Run Fit on the table with the missing fixture code. It will give an error.

6.

Set up a suite of tests and run Fit over them.



    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