Question

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"
Was it helpful?

Solution

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".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top