-
在 Scalatest 中使用什么代替符号?
在 scalatest 中,您应该能够使用如下符号测试布尔属性:In scalatest, you’re supposed to be able to test boolean properties using symbols like this:it...
-
避免在ScalaTest中继承超类测试
我想使用另一个项目中的测试代码,该项目已将一些实用程序方法及其测试紧密结合在一起.我想从此类继承,因此我可以使用实用程序方法,但不希望进行附带的测试.有没有一种方法可以从其他套件继承而无需注册测试?I'd like to use test code f...
-
在IntelliJ中运行ScalaTest时“无法加载Suite类”
我今天在Intellij中运行简单的TestKit测试时遇到了一些问题。测试针对Scala代码(我具有Intellij的Scala插件),并且基于 Ray Roestenburg的示例。I'm having some issues today wi...
-
scala测试框架:scalatest
api文档:http://tool.oschina.net/apidocs/apidoc?api=scalatest-1.7.2trait Assertions:http://tool.oschina.net/apidocs/apidoc?api=scalatest-1.7.2traitFunSui...
-
ScalaTest:在失败的期货中断言异常(非阻塞)
import org.scalatest.{ FlatSpec, Matchers, ParallelTestExecution }import org.scalatest.concurrent.ScalaFuturesimport org.apach...
-
IDEA中的scalatest编译出错
我正在尝试编译包含scalatest的Scala项目。 它在sbt上编译正常I am trying to compile Scala project which contains scalatest.It compiles normal on sbt ...
-
比较集合内容与 ScalaTest
我正在尝试对一些需要大量收集的 Scala 进行单元测试.这些集合作为 Iterable[T] 返回,所以我对集合的 内容 感兴趣,即使基础类型不同.这实际上是两个相关的问题:I'm trying to unit-test some Scala tha...
-
ScalaTest运行时Scala播放Slick RejectedExecutionException
我的FlatSpec测试正在抛出:My FlatSpec tests are throwing: java.util.concurrent.RejectedExecutionException: Task slick.backend.DatabaseC...
-
限制 Scalatest 并行执行线程数
我正在尝试并行执行部分测试,因此我使用 ParallelTestExecution 特性扩展了这些测试类,唯一的问题是它一次运行太多测试.据我所知,它最多运行 2 * number_of_cpu_cores 所以在我的情况下是 2*8 测试.它的方式太...
-
Scalatest 中的 java.lang.NoSuchMethodException
我有这样的测试类:package com.my.spark.testimport org.apache.spark.SparkContextimport org.scalatest.{ConfigMap, BeforeAndAfterAll, FunS...
-
ScalaTest - 编写自定义匹配器
我在为 NodeSeq 编写自定义匹配器时遇到问题:I am running into a problem while writing a custom matcher for NodeSeq:private def matchXML(expected...
-
Scalatest 是否支持假设?
根据标题,我想知道在定义特定测试用例时是否可以向 Scalatest 提供假设".在这种情况下,假设是测试的先决条件,如果假设评估为假,测试将被跳过而不是执行(并由运行者相应地处理).As per the title, I'm wondering if...
-
Scalatest PlusPlay Selenium 无法调整窗口大小
我已经研究了一段时间,我似乎找不到使用 scalatest plus 调整窗口大小的方法.Been digging at this for a while, and I can't seem to find a way to resize a wind...
-
为什么不推荐使用 scalatest MockitoSugar?
我是在 Scala 中编写 junit 测试的新手,我正在使用 Mockito 来模拟对象.我也在使用 scalatest_2.12-3.0.4.ScalaTest 文档(如此处)显示了使用 MockitoSugar 创建模拟的语法,即>I'm ...
-
无法在 Spark-2.2.0 - Scala-2.11.8 上运行单元测试(scalatest)
无法在 spark-2.2.0 上运行带有上下文的 scalatestUnable to run run scalatest with context on spark-2.2.0堆栈跟踪:异常或错误导致运行中止:org.apache.spark.sq...
-
是否有适用于 Eclipse Luna 和 Scala IDE Lithium 的 ScalaTest 插件?
试图找到与 Eclipse Luna 和 Scala IDE for Eclipse 4.0.0(又名 Lithium)一起使用的 ScalaTest 插件.目前使用 Scala IDE 的 Milestone 2 for Eclipse Lithiu...
-
scalatest:对象scalatest不是包org的成员
编辑:如果文件位于src/test/scala/tests/中而不是src/main/scala/mypackage/中,为什么可以使用?EDIT : it works if the file is in src/test/scala/tests/ ...
-
如何在ScalaTest中按顺序在类中运行测试?
我有一个扩展org.scalatest.junit.JUnitSuite的类.本课程有一些测试.我不希望这些测试并行运行.I have a class which extends org.scalatest.junit.JUnitSuite. This...
-
如何将ScalaTest与Spring集成
我需要使用Spring上下文中的@Autowired字段填充我的ScalaTest测试,但是大多数Scalatest测试(例如FeatureSpec不能由SpringJUnit4ClassRunner.class-I need to populate ...
-
嵌入式kafka scalatest ClassNotFoundException:scala.collection.GenTraversableOnce
Scala的新手,我正在使用 https://github实施ScalaTest的第一步.com/embeddedkafka/embedded-kafka 根据该自述文件顶部的第二个示例:New to Scala, I'm on step one o...
您的位置:首页 > 标签 “scalatest” 相关文章