AceTrainer
AceTrainer

Reputation: 13

Change JUnit report path

By default the JUnit reports are generated at build/reports/tests/testDebugUnitTest and build/reports/tests/testReleaseUnitTest

How I can modify my gradle file so I can change this location?

Upvotes: 1

Views: 2622

Answers (1)

Rene Groeschke
Rene Groeschke

Reputation: 28663

you can configure the html and xml output explicitly per task:

test {
    reports.junitXml.destination = file("$buildDir/xml")
    reports.html.destination = file("$buildDir/html")
}

Upvotes: 3

Related Questions