Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FDN-2325: Addition Scoverage #751

Merged
merged 10 commits into from
Apr 30, 2024
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ pipeline {
do
sleep 10
done
sbt clean flowLint test scalafmtSbtCheck scalafmtCheck doc
sbt clean coverage flowLint test scalafmtSbtCheck scalafmtCheck doc
'''
sh 'sbt coverageAggregate'
}
finally {
junit allowEmptyResults: true, testResults: '**/target/test-reports/*.xml'
postSbtReport()
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,11 @@ lazy val commonSettings: Seq[Setting[_]] = Seq(
scalacOptions ++= allScalacOptions,
credentials += credsToUse,
resolvers += "Artifactory" at "https://flow.jfrog.io/flow/libs-release/",
coverageExcludedFiles := ".*\\/api/app/generated\\/.*;.*\\/api/app/db/generated\\/.*;.*\\/generated\\/.*",
coverageDataDir := file("target/scala-2.13"),
coverageHighlighting := true,
coverageFailOnMinimum := true,
coverageMinimumStmtTotal := 20,
coverageMinimumBranchTotal := 20,
)
version := "0.8.43"
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ ThisBuild / libraryDependencySchemes ++= Seq(
)

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.8")
Loading