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

mochawesome-report/assets folder still generated even when "html=false" option specified #237

Closed
mattflix opened this issue Apr 14, 2018 · 2 comments

Comments

@mattflix
Copy link

mattflix commented Apr 14, 2018

I'm using mochawesome@3.0.2.

When html=false is specified, there will be no mochawesome-report/mochawesome.html file created, so generating the accompanying mochawesome-report/assets folder, populated with stylesheets and other stuff for use by the HTML, seems rather pointless.

I have a use-case where I simply want to generate mochawesome.json for my test run, so I specify json=true,html=false as the reporter options. I realize it doesn't "break" aything, but the unnecessary assets folder just adds clutter to my output files.

Would you consider tweaking mochawesome to also avoid generating the assets folder when html=false?

@adamgruber
Copy link
Owner

Yeah good catch. I agree there's no need to generate the assets in this case. I'll put this on the todo list.

@adamgruber
Copy link
Owner

Fixed with mochawesome-report-generator 3.1.2

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

No branches or pull requests

2 participants