简体   繁体   中英

how to make predictionio/flatspec create HTML output if I run the tests in sbt?

please help me with this issue: I have unit test in predictionio and want to create HTML output for that

The code is similar to this https://github.com/PredictionIO/template-scala-parallel-similarproduct/blob/develop/src/test/scala/CooccurenceAlgorithmTest.scala

how to make predictionio create HTML output if I run the tests in sbt?

Thank you very much.

I found the solution, in build.sbt:

libraryDependencies ++= Seq( ... "org.scalatest" %% "scalatest" % "2.2.1" % "test", "org.pegdown" % "pegdown" % "1.0.2" % "test" )

testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-h", "target/report")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM