Skip to content

ReferenceError when using junit reporter in 0.11.0 #338

@aeisenberg

Description

@aeisenberg

After the upgrade to 0.11.0, I am getting the following error when trying to use the junit reporter. When I downgrade back to 0.10.0, I not longer get the error.

ReferenceError: ejs:2
    1| <?xml version="1.0" encoding="UTF-8" ?>
 >> 2| <% for (var i=0; i < suites.length; i++) { %>
    3|   <% var suite=suites[i]; %>
    4|   <testsuite name="<%= suite.name %>"
    5|              errors="<%= suite.errorCount %>"

suites is not defined
    at eval (eval at compile (/.../node_modules/ejs/lib/ejs.js:482:12), <anonymous>:11:26)
    at returnedFn (/.../node_modules/ejs/lib/ejs.js:513:17)
    at Object.exports.render (/.../node_modules/ejs/lib/ejs.js:316:37)
    at /.../node_modules/nodeunit/lib/reporters/junit.js:150:44
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:416:3)

I will try to create a simple project that reproduces the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions