mochawesome-report-generator icon indicating copy to clipboard operation
mochawesome-report-generator copied to clipboard

Some files could not be processed

Open carrieyummy opened this issue 5 years ago • 5 comments

win10, mocha versions: Line 260: +-- [email protected] Line 277: +-- [email protected] Line 285: | +-- [email protected] deduped Line 289: +-- [email protected] Line 347: `-- [email protected] command: npx mochawesome-report-generator mochawesome.json image

attached the json file. mochawesome.json.zip

carrieyummy avatar Mar 14 '19 01:03 carrieyummy

I was able to copy the contents of your JSON file into a new file and then it worked. Not sure what the issue is.

adamgruber avatar Mar 14 '19 13:03 adamgruber

I am having the same issue.. Locally I get the same error as described above, when running from CI it generates an empty html report..

tijnster avatar May 27 '19 10:05 tijnster

i have the same issue, the problem is the encoding file.

i change the coding file from UCS-2 BE BOM to UTF-8 with notepad++ in "encoding option"

and try again

acenturion avatar Sep 29 '19 18:09 acenturion

yeah having same issue :( using v 3.1.5 and even tested with latest version still getting same issue

But after changing the encoding to UTF-8 its working. @acenturion now question is how we can change this encoding automatically ?

MehranShafqat avatar Mar 04 '20 07:03 MehranShafqat

adamgruber I'm facing the below issue:

image

Name and Versions used in package.json:- "mochawesome": "^7.1.3", "mochawesome-merge": "^4.2.2", "mochawesome-report-generator": "^6.2.0"

Configuration in cypress.config.js:- module.exports = defineConfig({ reporter: "mochawesome", reporterOptions: { reportDir: "cypress/results", overwrite: false, html: false, json: true, },

Commands used in sequence:

npm install --save-dev mochawesome mochawesome-merge mochawesome-report-generator

cypress run --reporter mochawesome
--reporter-options reportDir="cypress/results",overwrite=false,html=false,json=true

npx mochawesome-merge "cypress/results/*.json" > mochawesome.json

npx marge mochawesome.json

Please note that I've tried the workaround too for taking "mochawesome.json" and converting it into UTF- 8 but to no relief Here's the attached <mochawesome.json> file converted to txt file. Please suggest. mochawesome.txt

AtulKrSharma avatar Jan 25 '23 19:01 AtulKrSharma