Sarah
Sarah

Reputation: 741

Unable to run Scala test as a suite in Eclipse

I am running Scala (and Spark) tests using FunSuite in Eclipse (Kepler). I have been able to successfully run the tests. I then created a new package (in the same source folder and project) and am running into a problem.

When I select run as:

enter image description here

I am able to successfully run my tests using both the 1st (ScalaTest – File) and 3rd (ScalaTest – Test) options. However, when I try and run method 2 (ScalaTest – Suite), I get:

***RUN ABORTED ***
java.lang.ClassNotFoundException: com.domain.gotime.rdd.Test1

Why is that I am getting this error for the Suite only? I am planning on this being run automatically with Jenkins – and want to know if I need to fix this, and if so how?

I have looked over this page but am still confused as to why it isn't working.

Upvotes: 2

Views: 991

Answers (1)

Chua Chee Seng
Chua Chee Seng

Reputation: 116

Please check that com.domain.gotime.rdd.Test1 is in the classpath of the auto-created Run Configuration.

Upvotes: 1

Related Questions