Skip to content

[🚫 Bug] extester ignores output option from mocarc file #436

@imeliran

Description

@imeliran

Hello,

I have an issue where I referred the extester command to a custom "mocharc" file as described in the following wiki link:
https://github.com/redhat-developer/vscode-extension-tester/wiki/Mocha-Configuration

To simplify things here's how my mocharc.json file looks like:
{
"color": true,
"ui": "bdd",
"reporter": "xunit",
"reporter-option": ["output=doda.xml"]
}

When I run the test using extester command with --mocha_config //mocharc.json I do see in my console the xunit results format, however the file doda.xml is never created. seems like the code ignore that option.
According to official mochajs starting version 9.1.0 they added the out option of reporter-option as described here:
mochajs/mocha#4607

Does anyone make the test results exported into an external file.
I need that support for CI integration.
Thanks in advance,

Eliran

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions