Embedding HTML tags in JUnit test failure messages

Greetings everyone,

  I'm always searching for ways to generate more instructive messages when a given test fails. Ideally, I'd like to embed HTML tags in JUnit test failure message strings such that I could control how it appears in the Web-CAT results report. For example, one would embed a small table show the expected versus actual output, and preformat it so that spacing errors are more obvious. Has anyone done this, and is it even possible?

Thanks,

~Jim

Groups: