[Bug] reporter minimal doesn't throw "undone tests"
- Lingua principale
- JavaScript
- Stelle
- 1.9k
- Fork
- 359
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Reporter minimal doesn't throw "undone tests" and so exit with 0 instead of 1.
``` shell
/test (master⚡) ./node_modules/nodeunit/bin/nodeunit --reporter minimal ./tests/my.test.js
my.test.js: ..% /test (master⚡) echo $?
0
/test (master⚡) ./node_modules/nodeunit/bin/nodeunit ./tests/my.test.js
my.test.js
✔ constructor
✔ _getKeywords
FAILURES: Undone tests (or their setups/teardowns):
- onKeywords
To fix this, make sure all tests call test.done()
/test (master⚡) echo $?
1
/test (master⚡)
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Riproduci il comportamento con node_modules/nodeunit/bin/nodeunit, confrontando il minimal reporter con il default reporter su tests/my.test.js. Esamina il punto di ingresso del minimal reporter e la gestione del test onKeywords non completato; completato significa che il minimal reporter termina con lo stato 1 quando manca test.done().
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- cli, testing
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100