Skip to content

Commit

Permalink
#35 - Add code coverage support (#37)
Browse files Browse the repository at this point in the history
- fix redundancy and format
  • Loading branch information
miroslavpojer committed Nov 16, 2022
1 parent 53344cf commit 5191a22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -46,7 +46,7 @@ sbt jacoco
```
Code coverage will be generated on path:
```
{local-path}\spark-hats\target\scala-2.XY\jacoco\report\html
{project-root}/spark-hats/target/scala-{scala_version}/jacoco/report/html
```


Expand Down
8 changes: 3 additions & 5 deletions build.sbt
Expand Up @@ -51,11 +51,9 @@ addCommandAlias("releaseNow", ";set releaseVersionBump := sbtrelease.Version.Bum

// JaCoCo code coverage
Test / jacocoReportSettings := JacocoReportSettings(
s"spark-hats Jacoco Report - ${scalaVersion.value}",
None,
JacocoThresholds(),
Seq(JacocoReportFormats.HTML, JacocoReportFormats.XML),
"utf-8")
title = s"spark-hats Jacoco Report - ${scalaVersion.value}",
formats = Seq(JacocoReportFormats.HTML, JacocoReportFormats.XML)
)

// exclude example
Test / jacocoExcludes := Seq(
Expand Down

0 comments on commit 5191a22

Please sign in to comment.