Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set Filename for Junit and mochawesome Reporter #105

Open
Xdomen opened this issue Dec 1, 2022 · 0 comments
Open

Unable to set Filename for Junit and mochawesome Reporter #105

Xdomen opened this issue Dec 1, 2022 · 0 comments

Comments

@Xdomen
Copy link

Xdomen commented Dec 1, 2022

Expected behavior

Being able to save mochawesome and junit reports with same filename parameter.

Actual behavior

I am able to set mocha-junit-reporter XML report but unable to set filename for mochawesome HTML and JSON reports while working with mochawesome and mocha-junit-reporter

Ideally what I would like to do is save mochawesome and junit report with the same filename specified in the CLI command (not JSON file) since I need to pass them unique IDs for filenames.

Running the following command results in MOCHA_FILE=burek.xml <mocha-test-cmd> --reporter-options reportFilename=awesomereport

[mochawesome] Report JSON saved to /mochawesome-report/mochawesome.json
[mochawesome] Report HTML saved to /mochawesome-report/mochawesome.html

burek.xml created

I tried with --reporterOptions but I get the same output. Am I doing something wrong? I'am utterly lost at this point so any help is greatly appreciated!

Information about the Issue

My mocharc.json file contents

{
  "reporter": "mocha-multi-reporters",
  "reporterEnabled": "mochawesome, mocha-junit-reporter",
  "reporterOptions": ["configFile=.mocharc.json"]
}

Packages:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant