错误:使用scalatest FunSpec“包测试不是值”

时间:2018-02-15 23:07:28

标签: scala scalatest

我将测试从WordMatchers更改为FunSpec,现在无法排除以下编译错误的测试:

class SangriaDnbIACDataPipelineTest extends FunSpec {

  test("SangriaDnbIACDataPipeline") {
    val args =

enter image description here

 error: package test is not a value
[ERROR]   test("SangriaDnbIACDataPipeline") {

这是scala 2.11 scalatest 3.0.1

1 个答案:

答案 0 :(得分:1)

我认为您正在寻找FunSuite扩展程序:

const iterate = require('@a-z/iterate-it');
const obj = { a: 1, b: 2, c: 3 };

iterate(obj, (value, key) => console.log(key, value)); 
// a 1
// b 2
// c 3

请参阅testing styles