Given the below ultra-simple test script, I'm trying to figure out how to get junit.xml output.
When I run this, I only get a one-line on-screen summary to STDOUT:
JUnit 4 Runner, Tests: 1, Failures: 0, Time: 71
script:
#!/usr/bin/env groovy
@Grab(group='org.spockframework', module='spock-core', version='1.0-groovy-2.4') // @Grapes()
import spock.lang.* // pulls in non-defaults like @Unroll() and @Requires()
class HelloSpockSpec extends spock.lang.Specification {
def "example single assertion about Spock"() {
given: "setup initial data"
def attrStr = "logical"
when: "tweak data"
def SpockAttr = attrStr
then: "assertions"
SpockAttr == 'logical'
println "0. PASS: ok -- SpockAttr == 'logical'"
}
}
// EOF
How can I get junit.xml output? Note I'm not running under Maven or Gradle.