Giter Site home page Giter Site logo

Comments (5)

adamgruber avatar adamgruber commented on June 4, 2024

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.

from mochawesome-report-generator.

tijnster avatar tijnster commented on June 4, 2024

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..

from mochawesome-report-generator.

acenturion avatar acenturion commented on June 4, 2024

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

from mochawesome-report-generator.

MehranShafqat avatar MehranShafqat commented on June 4, 2024

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 ?

from mochawesome-report-generator.

AtulKrSharma avatar AtulKrSharma commented on June 4, 2024

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

from mochawesome-report-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.