How to include all SetUp child pages in FitNesse?

I have a SetUp page at the root level that is working fine. However, when I add subwiki to FitNesse and I want to put the SetUp page at a subspecies level. This turns on, but then there is no SetUp at the root level.

For example, with the following structure:

Foo suite
  SetUp
  TestPage
  Bar suite
    SetUp
    NestedTestPage

How do I get FitNesse to include both SetUp pages in a NestedTestPage?

+5
source share
2 answers

There is only one way that I know you can do this. If you included the parent manually in the child.

So then in your FooSuite.BarSuite.SetUp you had the following line:

!include .FrontPage.FooSuite.SetUp

This would then include the Foo package page in your Bar SetUp.

, SetUp, .

+5

,

!include -c <FooSuite.SuiteSetUp
+1

All Articles