spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shishir Anshuman <shishiranshu...@gmail.com>
Subject Re: Scala: Perform Unit Testing in spark
Date Fri, 01 Apr 2016 22:07:42 GMT
I got the file ALSSuite.scala and trying to run it. I have copied the file
under *src/test/scala *in my project folder. When I run *sbt test*, I get
errors. I have attached the screenshot of the errors. Befor *sbt test*, I
am building the package with *sbt package*.

Dependencies of *simple.sbt*:

>
>
>
>
> *libraryDependencies ++= Seq( "org.apache.spark" % "spark-core_2.10" %
> "1.6.0", "org.apache.spark" % "spark-mllib_2.10" % "1.6.0" )*




On Sat, Apr 2, 2016 at 2:21 AM, Ted Yu <yuzhihong@gmail.com> wrote:

> Assuming your code is written in Scala, I would suggest using ScalaTest.
>
> Please take a look at the XXSuite.scala files under mllib/
>
> On Fri, Apr 1, 2016 at 1:31 PM, Shishir Anshuman <
> shishiranshuman@gmail.com> wrote:
>
>> Hello,
>>
>> I have a code written in scala using Mllib. I want to perform unit
>> testing it. I cant decide between Junit 4 and ScalaTest.
>> I am new to Spark. Please guide me how to proceed with the testing.
>>
>> Thank you.
>>
>
>

Mime
View raw message