Files
cje-crash-course/exercises/05-test-execution-and-reporting/solution/solution.md
Benjamin Muschko 57896f0303 Clarify some details
2019-11-18 17:11:32 -07:00

37 lines
1021 B
Markdown

# Solution
Publish the JUnit reports by pointing to the exact directory containing the XML files.
![Publish JUnit Results](./images/publish-unit-tests.png)
After executing the build twice you will see a test result trend graph.
![JUnit Test Trend](./images/unit-test-result-trend.png)
Publish the JUnit reporting by using a wild card.
![Publish All JUnit Results](./images/publish-all-tests.png)
The trend changes accordingly.
![Changed Test Result Trend](./images/all-test-result-trend.png)
Install the JaCoCo plugin from the Plugin Manager page.
![JaCoCo Plugin](./images/jacoco-plugin.png)
Change the task list executed by the Gradle build step.
![JaCoCo Tasks](./images/jacoco-tasks.png)
Configure JaCoCo reporting.
![JaCoCo Configuration](./images/jacoco-config.png)
The JaCoCo coverage trend renders after executing the build twice.
![JaCoCo Coverage Report Trend](./images/jacoco-trend.png)
You can drill into the details of the report.
![JaCoCo Coverage Report Trend](./images/jacoco-report.png)