[英]Generate xml report for android Test task
I am running ./gradlew DebugUnitTest
task after completion its generating HTML report.完成生成 HTML 报告后,我正在运行./gradlew DebugUnitTest
任务。 is any way where I can generate XML report instead of HTML是我可以生成 XML 报告而不是 HTML 的任何方式
They are already there.他们已经在那里了。 The HTML reports are located in app/build/reports/tests/
, while the XML reports are in app/build/test-results
HTML 报告位于app/build/reports/tests/
中,而 XML 报告位于app/build/test-results
To activate xml test reports I had to add要激活 xml 测试报告,我必须添加
tasks.withType<Test> {
reports {
junitXml.isEnabled = true
}
}
to my gradle kotlin file.到我的 gradle kotlin 文件。 But they come in single xml files per test class.但它们在每个测试 class 中包含单个 xml 文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.