6
Czy można uruchomić tylko jeden test z pliku testowego nodeunit z kilkoma testami. Moja tests.js
file:uruchomić jeden test według nazwy z jednego pliku nodeunit
module.exports = {
test2: function (test) {
console.log ("test2")
test.done();
},
test1: function (test) {
console.log ("test1")
test.done();
}
};
mogę uruchomić wszystkie testy:
$ nodeunit tests.js
Ale chcę uruchomić tylko test2 jak:
$ nodeunit tests.js test2
Czy to możliwe bez spliting plik tests.js
w 2 oddzielnych akta?