[英]run scala test from Intellij
Below is the main class : 以下是主要课程:
object HelloWorld {
def hello() = "Hello "
}
Below is test suite: 下面是测试套件:
import org.scalatest.{Matchers, FunSuite}
class HelloWorldTest extends FunSuite with Matchers {
test("Say Hi!") {
HelloWorld.hello() should be ("Hello, World!")
}
}
I wanted to run the test cases from Intellij. 我想从Intellij运行测试用例。 I tried configuration type ScalaTest and Application and the configuration package does not appear to select. 我尝试了配置类型ScalaTest和应用程序,但似乎没有选择配置包。
How to run the test cases from Intellij 如何从Intellij运行测试用例
Not sure if I got you right but you can do it in multiple ways: 不知道我是否正确,但是您可以通过多种方式做到这一点:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.