Quotes inside of strings

I am wondering how to put quotes inside of a string. Basically I am outputting basic JUnit results to be picked up by CI. Here is an example of the output that is required:

<testcase classname="foo1" name="ASuccessfulTest"/>

You need to escape the double quotes. Luckily, there are a lot of ways to do that in Groovy. Give this a read:

1 Like