TIPS2: Spark起動して自動テスト 2/2 class SparkTest extends FlatSpec { it should "calculate sum" in { val conf = new SparkConf().setAppName("testApp").setMaster("local[*]") val sc = new SparkContext(conf) val numbers = sc.parallelize(1 to 10) assert(numbers.sum() == 55) } }