複数のテストを含む nodeunit テスト ファイルから 1 つのテストのみを実行することは可能ですか。私の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つの別々のファイルに分割せずに可能ですか?