caolan / caolan/nodeunit

question: can I filter which tests run?

Aperta
#223 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

My build scripts are currently using nodeunit.reporters["default"].run() to run tests against a list of files.

Is it possible to only run some tests within a file? Ultimately I'd like to be able to only run tests that failed in the past run. I see I can track which tests failed, so I'd like to pass that list so only those tests run on the next attempt.

The reason is my tests are slow :) I have a lot of integration tests, and with my workflow I usually just want to run those few tests first.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reading the nodeunit.reporters["default"].run() entry point described in the issue and trace how it receives the list of test files. Determine whether selecting tests within a file and rerunning a supplied list of previously failed tests can be specified without breaking existing runs. Done means the requested filtering behavior is defined and verified for slow integration-test workflows.

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

Valutazione

Stack tecnologico
javascript, node.js
Ambito
testing
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.