JGiven
JGiven copied to clipboard
Disable formatter when case table is rendered
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
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.
An idea would be to add an attribute to the formatter like: applyInTable