It's declared here: https://github.com/apache/spark/blob/master/core/src/test/scala/org/apache/spark/LocalSparkContext.scala
I assume you're already importing LocalSparkContext, but since the test classes aren't included in Spark packages, you'll also need to package them up in order to use them in your application (viz., outside of Spark). best, wb ----- Original Message ----- > From: "James" <alcaid1...@gmail.com> > To: dev@spark.apache.org > Sent: Tuesday, January 20, 2015 6:35:07 AM > Subject: not found: type LocalSparkContext > > Hi all, > > When I was trying to write a test on my spark application I met > > ``` > Error:(14, 43) not found: type LocalSparkContext > class HyperANFSuite extends FunSuite with LocalSparkContext { > ``` > > At the source code of spark-core I could not found "LocalSparkContext", > thus I wonder how to write a test like [this] ( > https://github.com/apache/spark/blob/master/graphx/src/test/scala/org/apache/spark/graphx/lib/ConnectedComponentsSuite.scala > ) > > Alcaid > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@spark.apache.org For additional commands, e-mail: dev-h...@spark.apache.org