How can I configure Fitnesse to automatically add a Test property to all pages ending in "Tests"
I its default configuration fitness will automatically add a Test property to all pages ending with "Test".
However, in a project I am working on, I have to add a Test property to all pages ending with "Tests". Unfortunately, renaming all pages so that they end in "Test" is not an option for me.
a source to share
Since 2008xxx Fitnesse versions, any page that starts or ends with a test is automatically set as a test page, and any page that starts or ends in Suite is set as a set. This is done when the page is created and will probably not work by simply renaming the page.
Note. If you have a large number of test pages to upgrade, you can use wingrep / grepwin (or some other tool that can do large scale find and replace, I personally use grepwin) and manipulate the .xml properties.
<Test>true</Test>
a source to share
Set the test property of pages in one of the following ways: 1. Go to the page, click properties, check the box. 2. Go to the page with options ?, Check the checkbox for test
3. Modify the properties.xml file associated with the page to include the tag inside the block.
Method 3 will be easiest to automate for a large number of files.
Perhaps it can be done with grep file utility for bulk find and replace.
Or a script (powershell) or file reader and add this tag as needed.
a source to share