JGiven icon indicating copy to clipboard operation
JGiven copied to clipboard

Disable formatter when case table is rendered

Open nikowitt opened this issue 7 years ago • 2 comments

Hi Jan,

some additional idea as this just caused confusion: We're using a @Quoted string, that is printed in quotes when it is printed in a single test case - which if of course fine. When a dataprovider is used that converts the cases to a table, the quotes are also printed in the table, which somehow implies that the quotes belong to the string itself.

What do you think? Best regards, Niko

nikowitt avatar Mar 14 '17 08:03 nikowitt

Interesting :-). I agree that the quotes should not be visible in the data table. The question is how to implement this. It basically means that a formatter behaves differently depending on whether it is used in a table or not. I also wonder whether there are other formatters where this could be relevant.

janschaefer avatar Mar 14 '17 09:03 janschaefer

An idea would be to add an attribute to the formatter like: applyInTable

janschaefer avatar Aug 20 '17 08:08 janschaefer