Generate test .zip report

Hi MicroEJ team,

I would like to know if there is a task to only generate the .zip report without necessarily publish it? (see here: Test a Project — MicroEJ Documentation)

For now when I want to share the test results I run the test task then zip myself the directory containing the HTML report.

Regards,

Philip

Hi Philip,

Since version 1.2.0 of the Gradle plugin, there is a zipTestResults task that creates a ZIP archive containing the test reports. This task should be run after executing the test tasks, for example:
./gradlew test zipTestResults

Please note that the archive will only include the reports for tests that have already been executed. The generated ZIP file can be found at:
build/tmp/testResults.zip

In the Gradle view of your IDE, you can find this task under the other group, as shown in the screenshot below.

Best regards,

Benoit

Thanks Benoit, I will upgrade to this version and try it.

Regards