Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include all ancestral SetUp pages in FitNesse subwikis?

Tags:

fitnesse

I have a SetUp page at the root level which works fine. However, when I add a subwiki in FitNesse and I want to put a SetUp page at the level of the subwiki. This gets included but then the root level SetUp doesn't.

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 NestedTestPage?

like image 891
Mike Scott Avatar asked May 21 '12 11:05

Mike Scott


1 Answers

There is only one way I know of that you could do this. If you included the parent manually into the child.

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

!include .FrontPage.FooSuite.SetUp

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

The general rule though is that any page has only one SetUp, so you have to force your way around it.

like image 71
Dan Woodward Avatar answered Oct 07 '22 05:10

Dan Woodward