caolan / caolan/nodeunit

feature request: fail if no test functions are run

Aperta
#277 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
1.9k
Fork
359
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

If you run nodeunit on an empty directory, it just prints
OK: 0 assertions
and exits successfully.

It would be nice if this exited with an error status code by default. That way, the build will fail if you move the tests and forget to update the nodeunit invocation.

(The workaround is to use a custom reporter)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by tracing the nodeunit invocation and default reporter behavior when an empty directory produces zero assertions. Check how the custom reporter workaround determines failure, then add coverage for the default behavior and verify that a no-test run exits unsuccessfully while normal test runs still pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
cli, testing
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.