【发布时间】:2019-11-28 06:36:41
【问题描述】:
我是 scala 的新手。我正在尝试在 IntellIj 中创建一个 scala 项目并添加一个测试类。 我在 sbt 中使用了以下 2 个依赖项。
libraryDependencies += ("org.scalactic" %% "scalactic" % "3.0.8")
// https://mvnrepository.com/artifact/org.scalatest/scalatest
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8" % Test
但我无法使用测试类“ProcessCSVTest.scala”中的 FunSuite 类进行测试,因为它给出了编译错误。
虽然我可以在 IntellIj 中看到外部库中的依赖项
Build.sbt 文件
name := "CSVParser"
version := "0.1"
scalaVersion := "2.13.0"
libraryDependencies += ("org.scalactic" %% "scalactic" % "3.0.8")
// https://mvnrepository.com/artifact/org.scalatest/scalatest
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8" % Test
完整的代码可以在这里找到 - https://github.com/practice09/CSVParser
谁能告诉我哪里做错了?
【问题讨论】:
-
我在截图中没有看到导入语句
标签: scala intellij-idea sbt scalatest