'meteor test' 没有选择 *.test[s].js
'meteor test' not picking up *.test[s].js
我正在使用 Meteor 1.7.0.3 并想编写单元测试。
我有标准 tests/main.js
和一些从命令行运行 meteor test --driver-package meteortesting:mocha --once
的测试。
但是,无论我把它放在哪里,都不会提取名为 my.tests.js
的新文件中的代码。
- Does eagerly load any file in our application (including in imports/ folders) that look like .test[s]., or .spec[s].
有没有我遗漏的配置?
默认 Meteor 集
"testModule": "tests/main.js"
在 package.json
中。这定义了 meteor test
的入口点。这就是为什么其中的测试得到 运行,与测试指南指示的相反。
通过删除此配置,Meteor 开始按照测试指南中的说明运行。
我正在使用 Meteor 1.7.0.3 并想编写单元测试。
我有标准 tests/main.js
和一些从命令行运行 meteor test --driver-package meteortesting:mocha --once
的测试。
但是,无论我把它放在哪里,都不会提取名为 my.tests.js
的新文件中的代码。
- Does eagerly load any file in our application (including in imports/ folders) that look like .test[s]., or .spec[s].
有没有我遗漏的配置?
默认 Meteor 集
"testModule": "tests/main.js"
在 package.json
中。这定义了 meteor test
的入口点。这就是为什么其中的测试得到 运行,与测试指南指示的相反。
通过删除此配置,Meteor 开始按照测试指南中的说明运行。