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

Here is what it took me to get the quotes to show up in case someone else needs a reference
println(’<testcase classname=’ + β€˜β€œName”’ + ’ name= ’ + β€˜β€œtcName2”’+ β€˜/>’)