concept fit in category software development

appears as: Fit
Test Driven: Practical TDD and Acceptance TDD for Java Developers

This is an excerpt from Manning's book Test Driven: Practical TDD and Acceptance TDD for Java Developers.

Fit (Framework for Integrated Tests) was developed by Ward Cunningham to bridge the gap between the customer and the developer in the context of authoring acceptance tests. Fit essentially provides syntax for constructing test fixtures from HTML tables and a way to hook those fixtures into their implementations in various programming languages, such as Java, C#, Python, and so forth.

Given an HTML document, Fit parses the document looking for tables and, when it finds one, invokes the underlying code associated with the specific table. Finally, Fit renders the input document with all the table cells colored according to test results—a cell containing an assertion that failed would be colored red, and a cell containing an assertion that passed would be colored green. Anything that’s not a table is considered narrative and is not processed by Fit. Fit is currently rather popular among teams adopting agile methods and, especially, Extreme Programming.

For a more thorough exploration into the Fit framework, I highly recommend picking up a copy of Fit for Developing Software (Addison-Wesley, 2005) by Ward Cunningham and Rick Mugridge, the original authors of Fit and FitLibrary, respectively. That book is the definitive tome that documents Fit’s features in far more depth and breadth than what is possible within the constraints of a single chapter. Having said that, once reaching this chapter’s summary, we will already have good enough a grasp of Fit’s concepts and underpinnings to be able to start automating acceptance tests on our project.

Fit, originally an acronym that stood for Framework for Integrated Tests, was developed by Ward Cunningham a couple of years ago to help getting customers involved in writing acceptance tests. Fit is available for a number of mainstream (and not quite so mainstream) programming languages and is essentially a thin framework that parses table-based documents and interprets and translates them into a sequence of method calls into the underlying fixture classes implemented with a programming language such as Java, C#, Python, or Ruby. Fit also supports reporting test results by producing a user-friendly, color-coded output of the test document, highlighting the fail/pass status of each table row with a green or red background color for each respective table cell.