Added findbugs and jacoco (coverage report) settings
This commit is contained in:
parent
aee2b85253
commit
c8842a0603
|
@ -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
|
> ~test-only * # run tests that matches a given name pattern
|
||||||
> publishM2 # publish jar to $HOME/.m2/repository
|
> publishM2 # publish jar to $HOME/.m2/repository
|
||||||
> package # create jar file
|
> 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/)
|
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
|
## Miscellaneous Notes
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import de.johoop.findbugs4sbt.ReportType
|
||||||
|
|
||||||
name := "snappy-java"
|
name := "snappy-java"
|
||||||
|
|
||||||
|
@ -68,6 +69,14 @@ logBuffered in Test := false
|
||||||
|
|
||||||
incOptions := incOptions.value.withNameHashing(true)
|
incOptions := incOptions.value.withNameHashing(true)
|
||||||
|
|
||||||
|
findbugsSettings
|
||||||
|
|
||||||
|
findbugsReportType := Some(ReportType.FancyHtml)
|
||||||
|
|
||||||
|
findbugsReportPath := Some(crossTarget.value / "findbugs" / "report.html")
|
||||||
|
|
||||||
|
jacoco.settings
|
||||||
|
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"junit" % "junit" % "4.8.2" % "test",
|
"junit" % "junit" % "4.8.2" % "test",
|
||||||
"org.codehaus.plexus" % "plexus-classworlds" % "2.4" % "test",
|
"org.codehaus.plexus" % "plexus-classworlds" % "2.4" % "test",
|
||||||
|
|
Loading…
Reference in New Issue