caolan / caolan/nodeunit

junit reporter always have empty xml files with 0.6.2 worked good with 0.5.5

Open
#125 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

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...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.