简体   繁体   中英

How do I generate test reports from Espresso

I have a test project running successfully on Jenkins using Ant. I see the test results in the console output but how do I generate a report?

I use Jenkins and Espresso also. I use Spoon by Jake Wharton to generate my reports. Take a look! They are clean and very easy to use.

Without using Espresso this can be done easily by using the JUnitReportTestRunner from Zutubi. The report can then be digested eg via the Jenkins xUnit Plugin

Espresso though requires its own testrunner that has to be based on GoogleInstrumentation . Combining both the JUnitReportTestRunner and the GoogleInstrumentationTestRunner is quite hacky at the moment, because GoogleInstrumentationTestRunner does not expose a method to attach a test listener. This google groups post shows how to attach the listener from the Zutubi project anyway.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM