Skip to content

Commit 3923ffb

Browse files
authored
JaCoCO code and coverage report (#2714)
* chore: updated groovy-test dependency and fixed missing import * feat: jacoco report * feat: css in report * fix: fixed navigation * chore: simplified jacoco configuration * feat: project-wise reports * chore: styling on sub-projects * fix: fixed percentage in root report * chore: home button, bugged * chore: fixed home link * chore: some more styyling * feat: full control over css * chore: code clean-up * chore: better navigation * chore: gemini suggested improvements * chore: updated readme * fix: fixed bugged condition * fix: fixed root report coverages * fix: more gemini fixes * chore: initialized parser just one time * fix: fixed project exploration * fix: more gemini suggested fixes * fix: fixed slurper initialization
1 parent d0d1c77 commit 3923ffb

7 files changed

Lines changed: 617 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,18 @@ You can run the "jme3-examples" app:
109109
You can restore the project to a pristine state:
110110
+ using Bash or Fish or PowerShell or Zsh: `./gradlew clean`
111111
+ using Windows Command Prompt: `.\gradlew clean`
112+
113+
## Running Tests
114+
115+
To run all tests and generate a JaCoCo code coverage report, run the `testCodeCoverageReport` Gradle task. To avoid the generation of the report, use the `test` task instead.
116+
117+
This runs all subproject tests and produces two sets of HTML reports:
118+
119+
- **Aggregated report** (all modules combined):
120+
`build/reports/jacoco/testCodeCoverageReport/html/index.html`
121+
- **Per-module reports**:
122+
`<module>/build/reports/jacoco/test/html/index.html`
123+
124+
A summary index linking to every per-module report is also generated at:
125+
`build/reports/jacoco/index.html`
126+

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ ext {
173173
ndkExists = false
174174
}
175175

176+
apply from: 'gradle/jacoco.gradle'
177+
176178
task configureAndroidNDK {
177179
def ndkBuildFile = "ndk-build"
178180
// if windows, use ndk-build.cmd instead

0 commit comments

Comments
 (0)