I can't get FunSuite to work, what am I missing: error while loading Suite, Scala signature Suite has wrong version

25 views
Skip to first unread message

Dana Murad

unread,
Feb 5, 2016, 11:55:27 AM2/5/16
to scala-user
Maven project

Here's my dependency: 

 <dependency>
 
<groupId>org.scalatest</groupId>
 
<artifactId>scalatest_2.11</artifactId>
 
<version>2.2.5</version>
 
<scope>test</scope>
 
</dependency>


Here's my class grabbed straight from the FunSuite docs example: 

import org.scalatest.FunSuite

class ExampleSuite extends FunSuite {

  ignore
("addition") {
    val sum
= 1 + 1
   
assert(sum == 2)
 
}

  test
("subtraction") {
    val diff
= 4 - 1
   
assert(diff == 3)
 
}
}

I get the following error that is no where on google (except my stackover flow question)

[INFO] Compiling 10 source files to C:\************************\master\target\test-classes at 1454609466815
[ERROR] error: error while loading Suite, Scala signature Suite has wrong version
[INFO]  expected: 5.0
[INFO]  found: 4.1 in Suite.class
[ERROR] one error found

Any help appreciated, 
Reply all
Reply to author
Forward
0 new messages