Reputation: 41919
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"
Upvotes: 0
Views: 112
Reputation: 33083
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".
Upvotes: 3