mocha-parallel-tests icon indicating copy to clipboard operation
mocha-parallel-tests copied to clipboard

xml report file has leading space in 'classname'

Open kingsimba opened this issue 5 years ago • 0 comments

Problem

I use the following command to generate xml file:

mocha-parallel-tests src/**/*.spec.js --reporter mocha-jenkins-reporter --reporter-option junit_report_path=report.xml

But the report file has misformatted classname (note the leading space character):

<testcase 
    classname=" /nc/v1/routing/routeDiffusion" 
    name="test route diffusion server basic" time="0.119">
</testcase>

If I use 'mocha' instead, there is no such problem

kingsimba avatar May 06 '20 11:05 kingsimba