Mocha
A guide for generating Trunk-compatible test reports for Mocha
Checklist
Generating Reports
npm install --save-dev mocha-junit-reportermocha --reporter mocha-junit-reporter --reporter-options mochaFile=./junit.xmlvar mocha = new Mocha({
reporter: 'mocha-junit-reporter',
reporterOptions: {
mochaFile: './junit.xml'
}
});Report File Path
Disable Retries
Try It Locally
The Validate Command
Test Upload


Next Steps
Last updated













