如何在xml报告中获得最大的测试运行时间
发布时间:2020-12-16 08:02:46 所属栏目:百科 来源:网络整理
导读:我们使用ScalaTest运行测试并在Jenkins中显示结果。它工作得很好,但由于某种原因,Scalatest不会填充测试运行时。 我正在添加如下测试选项: Tests.Argument("-oD","-u","target/test-reports") 但XML文件没有时间(见时间总是0): testcase classname="beek
我们使用ScalaTest运行测试并在Jenkins中显示结果。它工作得很好,但由于某种原因,Scalatest不会填充测试运行时。
我正在添加如下测试选项: Tests.Argument("-oD","-u","target/test-reports") 但XML文件没有时间(见时间总是0): <testcase classname="beekeeper.warehouse.jdbc.JDBCWarehouseTest" name="testListTables" time="0.0"> </testcase> <testcase classname="beekeeper.warehouse.jdbc.JDBCWarehouseTest" name="testGetDatabases" time="0.0"> </testcase> <testcase classname="beekeeper.warehouse.jdbc.JDBCWarehouseTest" name="testSchema" time="0.0"> </testcase> 我需要做别的事情来报告这个,还是不支持? 感谢任何帮助
我尝试使用来自
http://www.typesafe.com/activator/template/hello-scala的示例hello-scala,它使用scalatest 2.2.4和Scala 2.11.6
使用激活器我可以看到测试运行时间 < testcase classname =“HelloSpec”name =“Hello should have tests”time =“0.037”> 你能告诉我们你正在使用什么样的构建工具,还可以分享你的build.sbt吗? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |