Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to suppress WikiWord formatting for variables in Fitnesse

Tags:

wiki

fitnesse

I am using the ${varname} syntax to reference an environment variable in one of my Fitnesse tests, in the form of

| check | Project Name | ${PROJECT_NAME} |

Most of the time this works fine, but occasionally the value of the environment variable is (coincidentally) in WikiWord format, which screws up the test because Fitnesse is treating it as a page link:

| check | Project Name | MyTestProject[?] |

I've tried using the !- -! syntax to suppress the formatting, but that prevents the variable from being resolved. Is there a way to suppress the wikiword formatting after the variable is resolved?

like image 905
highlycaffeinated Avatar asked Oct 24 '25 14:10

highlycaffeinated


1 Answers

You can use literal tables by adding ! to the beginning of the first row:

!|check|project name|${PROJECT_NAME}|
like image 113
Mike Stockdale Avatar answered Oct 26 '25 15:10

Mike Stockdale