开发者

Fitnesse SLIM Query Table - Stopping empty cells from failing?

I've got a large set of Fitnesse (For Java - v20090513) tests which are executed against a SLIM Query table.

To help with the testing (explain why we're getting certain results) I've added a new column to the end of the table. The idea is that the cells for that column would be empty (||) as they're not required to be tested against, it's just for informational purposes.

The problem with this is that Fitnesse causes every one of those cells to fail because the returned data is different to the data entered (which was nothing).

Is there a way to make Fitnesse ignore this column, or just make it pass? Ideally I don't want to change 开发者_开发问答much of the fixture code which is being called. I understand I could use a table of type table and just match things up myself, but that's an hour or 2 of work which I can't really afford to do.

Thanks for your help.


What is being returned? Is it just null? Could you change it to return a empty string? Can you explain why the property cannot return the same thing that's expected?


If it's a table fixure, you'll have to modify your fixture code so that if the column header is "Comment", the cells value is set to "ignore" in the ArrayList that is returned from the doTable function.


I'm surprised that the empty cells aren't being ignored by Fitnesse as they're supposed to; sounds like a bug to me. Anyway, you may be able to work around it by putting =~/.*/ in that column, i.e. a regexp that matches anything. (See value comparisons)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜