highlycaffeinated
highlycaffeinated

Reputation: 19867

How to suppress WikiWord formatting for variables in 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?

Upvotes: 4

Views: 808

Answers (1)

Mike Stockdale
Mike Stockdale

Reputation: 5266

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

!|check|project name|${PROJECT_NAME}|

Upvotes: 6

Related Questions