6
是否有可能只用一些测试运行nodeunit测试文件中的一个测试。我tests.js
文件:通过名称从一个节点单元文件运行一个测试
module.exports = {
test2: function (test) {
console.log ("test2")
test.done();
},
test1: function (test) {
console.log ("test1")
test.done();
}
};
我可以运行所有测试:
$ nodeunit tests.js
但我想只运行test2的,如:
$ nodeunit tests.js test2
是否有可能不劈裂文件tests.js
成2个独立的文件?