Section 8.4. Test Suites


8.4. Test Suites

FitNesse 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 Tests


A 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

Q1:

What happens if I start editing a page and someone else changes it while I'm doing so?

A1:

When you try to save your changes to the page, FitNesse warns you that the page has been changed meanwhile. That way, nothing is lost. FitNesse shows you the latest saved copy of the page, so that you can merge any changes with your own, if you wish. Or, you can decide to not go ahead with your changes.



    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