Domanda

I'm having problems running a scalatest from SBT.

> test
[info] Compiling 2 Scala sources to C:\side-work\MonadsSbt\target\scala-2.10
\test-classes...
[error] C:\side-work\MonadsSbt\src\test\scala\tests\TestMonadLaws.scala:4: 
object scalatest is not a member of package org
[error] import org.scalatest._

Here's part of my project/build.sbt:

libraryDependencies += "org.scalatest" % "scalatest_2.10" % "2.0" % "test"

resolvers +=  "Sonatype OSS Snapshots" at 
"https://oss.sonatype.org/content/repositories/snapshots"
È stato utile?

Soluzione

It should be either build.sbt or project/Build.scala, not project/build.sbt. The latter would be a build file for a build file - a "meta-build file".

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top