Debian Codegraph @

docs-next/src/content/docs/reporters/xunit.mdx

raw
1 ---
2 description: The XUnit test reporter for Mocha.
3 title: XUnit
4 ---
5
6 Alias: `XUnit`, `xunit`
7
8 The XUnit reporter outputs an XUnit-compatible XML document, often applicable in CI servers.
9
10 By default, it will output to the console.
11 To write directly to a file, use `--reporter-option output=filename.xml`.
12
13 To specify custom report title, use `--reporter-option suiteName="Custom name"`.
14
15 The reporter shows absolute file paths by default.
16 To show relative paths instead, use `--reporter-option showRelativePaths`.