object TagFragments is not a member of package org.specs2.specification

58 Views Asked by At

I have recently upgraded play version to 2.4 coming from 2.3, Since I'am using specs2 for writing tests, I needed to add the following line to the sbt file:

libraryDependency += specs2 % Test

resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"

But when compiling my test file I had the following errors:

object TagFragments is not a member of package org.specs2.specification 
 import org.specs2.specification.TagFragments.AlwaysTag
object CommandLineArguments is not a member of package org.specs2.main
 import org.specs2.main.CommandLineArguments
value eg is not a member of org.specs2.execute.DecoratedResult[org.specs2.matcher.DataTable]
 possible cause: maybe a semicolon is missing before `value eg'?
     }).eg
value urlIs is not a member of org.specs2.specification.core.SpecHeader
 "helloWorldTest".title.urlIs("index.html") ^ sequential ^  s2"""
0

There are 0 best solutions below