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個獨立的文件?