junit reporter always have empty xml files with 0.6.2 worked good with 0.5.5
- Lingua principale
- JavaScript
- Stelle
- 1.9k
- Fork
- 359
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi,
I've a couple of nested tests that were being executed as expected with 0.5.5 but with 0.6.2 i always get an empty xml file with the junit reporter.
I notice that with 0.6.2 the console does not even write FAILURES: x/y assertions while it did with 0.5.5.
Furthermore i added a console.log to the end of the junit reporter code and is seems that the rendered template is broken the output is not valid XML:
Writing /Users/me/Projects/p/logs/models.test.xml
```
AssertionError: null === 'User has no current blog'
at Object.strictEqual (/Users/me/Projects/p/node_modules/nodeunit/lib/types.js:83:39)
at /Users/me/Projects/p/test/models/User.test.js:67:14
at model.getBlog (/Users/me/Projects/p/models/User.js:569:5)
at Promise.<anonymous> (/Users/me/Projects/p/test/models/
```
The output ends here. I guess the template engine crashed or soemthing...
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Riproduci il caso di test annidato con nodeunit 0.6.2 e confrontalo con 0.5.5, partendo dal reporter JUnit e dal percorso di errore mostrato in test/models/User.test.js, models/User.js e nodeunit/lib/types.js. Verifica dove si interrompe l’output XML e se il reporter completa un documento valido; il lavoro è completato quando gli errori vengono segnalati e l’XML generato è completo e valido.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100