Added findbugs and jacoco (coverage report) settings

This commit is contained in:
Taro L. Saito 2015-05-15 11:19:17 +09:00
parent aee2b85253
commit c8842a0603
2 changed files with 12 additions and 1 deletions

View File

@ -165,7 +165,9 @@ snappy-java uses sbt (simple build tool for Scala) as a build tool. Here is a si
> ~test-only * # run tests that matches a given name pattern
> publishM2 # publish jar to $HOME/.m2/repository
> package # create jar file
> findbugs # Produce findbugs report in target/findbugs
> jacoco:cover # Report the code coverage of tests to target/jacoco folder
For the details of sbt usage, see my blog post: [Building Java Projects with sbt](http://xerial.org/blog/2014/03/24/sbt/)
## Miscellaneous Notes

View File

@ -1,3 +1,4 @@
import de.johoop.findbugs4sbt.ReportType
name := "snappy-java"
@ -68,6 +69,14 @@ logBuffered in Test := false
incOptions := incOptions.value.withNameHashing(true)
findbugsSettings
findbugsReportType := Some(ReportType.FancyHtml)
findbugsReportPath := Some(crossTarget.value / "findbugs" / "report.html")
jacoco.settings
libraryDependencies ++= Seq(
"junit" % "junit" % "4.8.2" % "test",
"org.codehaus.plexus" % "plexus-classworlds" % "2.4" % "test",