【问题标题】:how to make predictionio/flatspec create HTML output if I run the tests in sbt?如果我在 sbt 中运行测试,如何让 predictionio/flatspec 创建 HTML 输出?
【发布时间】:2016-02-09 16:48:20
【问题描述】:

请帮我解决这个问题: 我在 predictionio 中进行了单元测试,并希望为此创建 HTML 输出

代码类似这样 https://github.com/PredictionIO/template-scala-parallel-similarproduct/blob/develop/src/test/scala/CooccurenceAlgorithmTest.scala

如果我在 sbt 中运行测试,如何让 predictionio 创建 HTML 输出?

非常感谢。

【问题讨论】:

    标签: html scala unit-testing sbt predictionio


    【解决方案1】:

    我在 build.sbt 中找到了解决方案:

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

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

    【讨论】:

      猜你喜欢
      • 2018-10-18
      • 2020-07-27
      • 2020-02-22
      • 2018-05-19
      • 2018-09-28
      • 1970-01-01
      • 2023-03-12
      • 2014-12-13
      • 2012-06-18
      相关资源
      最近更新 更多