Acceptance Tests with FIT/FitNesse
Acceptance Tests withFIT/FitNesse by Ralf Stuckert
Most Java developers know JUnit and how to write testable software. But unit tests are not sufficient to ensure high quality software. The customer does not care about units, but expects the complete system to perform correctly. So we also need acceptance tests which test the system as a whole. There have been some attempts to use JUnit for implementing acceptance tests, but I don't feel very comfortable with them. Currently FIT is gaining momentum in this area. FIT provides a clear separation of concerns: Domain experts write human readable acceptance tests, and the developers have to write some code snippets to make the FIT tests run against the system. FitNesse is a special WiKi based on FIT, which provides the possibility to edit the test documents and execute the tests directly from a web browser.
This tutorial is a short technical introduction to FIT/FitNesse. Personally, I prefer learning by example, that's why I implemented it as a FitNesse WiKi. It is meant to be an interactive tutorial which allows you to directly execute the tests, modify the test data and the code, and watch the results. I also provided a static HTML version. It will be sufficient for a first impression, but compared to the original FitNesse based tutorial the functionality is very restricted. You will not be able to fool around with the test data and the code. You can click the Test button, but instead of executing the tests only a static HTML result page is presented. So for experiencing all of the possibilities of FitNesse you should download the WiKi based version.
Anyway, for a quick introduction start with the HTML version quick introduction