mocha-parallel / mocha-parallel-tests

Parallel test runner for mocha tests. Looking for maintainer.
MIT License
199 stars 45 forks source link

xml report file has leading space in 'classname' #290

Open kingsimba opened 4 years ago

kingsimba commented 4 years ago

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