8.4. Test SuitesFitNesse provides direct support for suites of test, a group of interrelated tests. If a page name starts with Suite, a Suite link appears in the left-hand side buttons when that page is showing. A page can also be turned into a suite by clicking Properties and ticking the Suite box. When the Suite link is clicked, FitNesse runs Fit tests on that page and on all pages within it, to arbitrary nesting, in the subwiki page hierarchy and provides a report of all those test pages. For example, Figure 8.4 shows part of the report for the test suite used to test FitNesse itself. Figure 8.4. Suite Report for FitNesse TestsA set of tests may have common initial and final tables. The pages SetUp and TearDown may hold tables that are run, respectively, before and after each test page. These tables are shown in every page where they apply, as well as in the report. (FitNesse looks up the page hierarchy from that test page and finds the closest SetUp and TearDown pages.) The SuiteSetUp and SuiteTearDown pages are also provided to run before and after each test suite, in a comparable manner to SetUp and TearDown for test pages. Questions & Answers
|