, Steve Freeman
FIT is a framework that comes in various guises (Fit, Fitnesse, Fitlibrary), and can be used in different ways. The core principle behind writing FIT documents is to promote better communication between the stakeholders of a system. In principle, using FIT is a good thing, but in practice we find that some teams struggle to use FIT documents effectively. In this tutorial we will introduce some concrete examples of poor FIT style, and get the participants to refactor these examples to improve them.
By attending this session, you will:
(10-15 mins) - Introduction, including a brief introduction to FIT, and example driven development in general.
(approx 1 hour): Laptops required. Work through a series of exercises. For each exercise, we will give the participants one or two FIT documents, and ask the participants to work in pairs to refactor the tables into something clearer. Each exercise is focused on a specific aspect of FIT document style. After each exercise we will present our proposed refactored document(s) and discuss.
(15 - 20 mins): FIT in practice. We will wrap up the session with a short presentation covering some of the practical pitfalls to avoid when applying FIT in practice. This is based on our real experience of using FIT on several projects, some successful, some not so successful.
This session is being run at SPA 2008 -> http://www.spaconference.org/spa2008/sessions/session164.html. A non-interactive version of the material was presented at JavaZone 2007.
We give the attendees an HTML file containing one or more FIT tables. The delegates work in small groups (2-3 people) to refactor the HTML into clearer FIT tables. For this they can use whatever text editor or HTML editor they choose. Each exercise is designed to illustrate different issues with FIT style.
In this part of the session we will run through some prepared slides talking about some of the common problems we have encountered with teams that use FIT. Most of this advice can be applied to any sort of agile testing.