Skip to content

Commit

Permalink
Jacoco test coverage added
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Jan 11, 2025
1 parent 04f26a3 commit cc1e05b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_scan_gradle_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
distribution: 'graalvm'
cache: gradle
- name: Build and scan project
run: gradle clean build sonar
run: gradle clean build jacocoTestReport sonar
env:
# Needed to get some information about the pull request, if any
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ link:https://semver.org/spec/v2.0.0.html[Semantic Versioning].

==== Added

* Jacoco test coverage
* Test with Junit5
* Change FreeMarker version section in README
* SonarCloud scan
Expand Down
15 changes: 15 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
java
jacoco
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
Expand Down Expand Up @@ -40,6 +41,20 @@ tasks.test {
}
}

jacoco {
toolVersion = "0.8.12"
}

tasks.jacocoTestReport {
dependsOn(tasks.test)

reports {
html.required.set(true)
xml.required.set(true)
csv.required.set(false)
}
}

object Meta {
const val desc = "GraalVM support for ApacheFreemarker."
const val githubRepo = "fugerit-org/freemarker-native"
Expand Down

0 comments on commit cc1e05b

Please sign in to comment.