Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 08 2018 21:14
    adamgruber closed #21
  • Jan 08 2018 21:14
    adamgruber commented #21
  • Jan 08 2018 21:13
    adamgruber closed #50
  • Jan 08 2018 21:13
    adamgruber commented #50
  • Jan 08 2018 21:12
    adamgruber closed #78
  • Jan 08 2018 21:12
    adamgruber commented #78
  • Jan 08 2018 21:12
    adamgruber closed #79
  • Jan 08 2018 21:12
    adamgruber commented #79
  • Jan 07 2018 18:58
  • Jan 04 2018 13:56
    rsaccoll starred adamgruber/mochawesome
  • Jan 04 2018 10:38
  • Jan 04 2018 06:31
    CrossJae starred adamgruber/mochawesome
  • Jan 03 2018 11:38
    vijaybernad opened #222
  • Dec 29 2017 21:42
    juansb827 starred adamgruber/mochawesome
  • Dec 27 2017 23:11
    Koslun starred adamgruber/mochawesome
  • Dec 27 2017 10:21
    MiYogurt starred adamgruber/mochawesome
  • Dec 26 2017 17:45

    adamgruber on 3.0.1

    (compare)

  • Dec 26 2017 17:45

    adamgruber on 3.0.0

    (compare)

  • Dec 26 2017 17:43

    adamgruber on master

    Update CHANGELOG.md (compare)

  • Dec 26 2017 17:42

    adamgruber on master

    Release 3.0.1 [ci skip] (compare)

sanguino
@sanguino
I'm using mochawesome with cypress for snapshot testing, the reporter is awesome!!
;)
If a test run ok, but have some image differences with the previous snapshot, I throw an error(18 out of 30 snapshots...) and I add the differences and video as context
sanguino
@sanguino
I thinks it is good, but I have no idea how to mark the tests that fails because it cant be executed at all, and how to mark the ones thats finish ok, but have some different snapshots...
have you got any idea?
I tried to generate an it for each image, to have the execution of the test itself, with the video, and one test to compare each image, but I can imagine how to create "its" dinamically
olexandr13
@olexandr13
Hi, guys. I do console.log() in tests but no console messages in report.
Even with quiet=false
olexandr13
@olexandr13
can anybody help me? )
Vishesh
@Vishesh3008_twitter
Hi , I am trying mochawesome and it is overwriting the json and html file . How can we stop it from overwritting. ?
1 reply
sreekanthreddymale
@sreekanthreddymale
Hi guys, I am trying to use mochawesome reporter but i am not able to see addcontext in html report after i marged it
anyone faced similar issue ?
I am using webdriverio
Rasimsson
@Rasimsson
Hi All, I am trying to use mochawesome with Webdriver (latest version) it generates the json file but the HTML file once merged does not contain the look and feel of the reports showcased. Instead it is just a plaintext HTML file. Any idea what I am doing wrong? (I am a beginner btw).
Madhu-1234
@Madhu-1234
@toien44 How did you resolve that issue of getting blank html page. I am also facing the same
1 reply
anyone else you ever have the issue where your HTML report shows in mochawesome folder. I see the body has the raw-databut the page does not render anything, it's just a blank screen.
rodolforodriguess
@rodolforodriguess

Hi everyone,

I am using cypress with mochawesome as a reporter.

I wanted to put the screenshots taken with cypress with its relative path in the html of the mochawesome report generated so I can publish it on JIRA issue for example without worrying that is not going to display these screenshots because they are set with the absolute path in the report. Is there a way to do that? In the other words what I want is put the scheenshots inline of the html report in base64 format.

I was able to do that with webdriver io and wdio-mochawesome-reporter. I saw the image is converted to a base64 format and added to <img> in the html of the reporter.
I believe this particular option in the link below does the job. Have a look at Reporter Configurations section:
https://webdriver.io/docs/wdio-mochawesome-reporter.htm

In the report created with cypress, I created the json files, merged then into only one json file, then generated a report in html and put both sucessfull and failed scheenshots into the report.
I also used "--inline" option to put the assets into the html code of the report so all the code of the app.js and app.css are merged into the html report.

I wish I could do the same with screenshots in mochawesome report generated with my cypress tests.

Thanks in advance for any support.

sharmadeepak43
@sharmadeepak43
Hello Everyone, I am trying to integrate mochawesome report with Reporting Portal using Cypress Framework. I tried two ways -
  1. Tried with ctpress-multi-reporters plugin but seems there is an issue going on with it - reportportal/agent-js-cypress#59 on which the team is working.
  2. I tried the conditional configurations with plugins/index.js file for mochawesome & Report Portal plugin configs, and trying to execute it using CLI. I am getting this error - ERROR: Failed to merge reports
    Error: Pattern cypress/results/mochawesome*.json matched no report files
    Can anyone guide me on this if I am missing something on configuration level. Thanks!!
Michael
@Metachemix1
@adamgruber i have a question regarding the skipped tests starting of mochawesome 4.0.0 they are not able to open anymore, we upgraded to 6.2.1 fron 3.0.2 and now we can't access the skipped reason data anymore of the reports, wihle passed/failed can be opened. Is this on purpose perhaps?
Avinash Upadhyaya K R
@avinashupadhya99
Hello, is there a way to disable the source code in the report ? Thanks in advance
Adam Gruber
@adamgruber
Yes please have a look at the documentation. There is an option to disable source code.
Asad
@Asad39895584_twitter
Hello everyone, i am using mochawesome reporter for my Nodejs project. I am currently facing an issue in which mochawesome report is attached in email and when i open the report it shows nothing? any help would be much appreciated thanks.
1 reply
noguese
@noguese
Hi guys, I have two questions
  1. what is the difference between mochawesome-report-generator (marge) AND Moachawesome?
  2. is it possible mochawesome.html on root directory of my project?(out of mochaweome-report folder), I only need the mochawesome.html. (just like the way junit-test-results.xml is generated to root of a project) because the report is inside a folder gitlab will give this error no matching files in the pipeline
Adam Gruber
@adamgruber
@noguese mochawesome is the reporter. marge is a bundled dependency that generates the report files from the reporter output. You can use a relative path in the —reportDir option
noguese
@noguese
Screenshot 2020-12-30 at 17.07.39.png
How do I FIX this please. when I use the same path for junit reporter it works fine but for moachawesome is not working
@noguese mochawesome is the reporter. marge is a bundled dependency that generates the report files from the reporter output. You can use a relative path in the —reportDir option
Danny Sandí
@dsandi

Hi, im having this weird issue when running parallel tests. After executing mocha with mochawesome as reporter the report is generated properly, but if I was to manually generate the report from the json file it fails:

`
marge mochawesome-report/mochawesome.json

✘ Some files could not be processed:
mochawesome-report/mochawesome.json
Invalid value null supplied to /results/0/suites/0/suites/0/suites/0/tests/0/pending: Boolean
`

It looks like the json generated by mochawesome when running mocha in parallel is not valid for marge. (probably just missing pending and other values that do not exist when running in parallel)

malashreebalaraj
@malashreebalaraj

Hi, I am facing issue with addContext import whie adding custom commands for attaching screenshot.
Error is :
Could not find a declaration file for module 'mochawesome/addContext'. 'c:/<projectRepo>/node_modules/mochawesome/addContext.js' implicitly has an 'any' type.
Try npm i --save-dev @types/mochawesome if it exists or add a new declaration (.d.ts) file containing declare module 'mochawesome/addContext';ts(7016)

I can see addContext.js file is present. and it has similar error
Could not find a declaration file for module './src/addContext'. 'c:/<projectRepo>/node_modules/mochawesome/src/addContext.js' implicitly has an 'any' type.ts(7016)

Can anyone please help?

Adam Gruber
@adamgruber
That’s a typescript issue, not an issue with the library
malashreebalaraj
@malashreebalaraj
@adamgruber How can i resolve the above issue? i am unable to see the screenshots attached to my report. please help
Paul Osagiobare
@paul.osagiobare_gitlab

In gitlab Artifact when I download the html report I get an empty test report. Please How can I solve this.
This is the code
package.json
"test": "mocha --reporter mocha-multi-reporters --reporter mochawesome --timeout 100000 --reporter-options configFile=.mocharc.json e2eTest/*.js",

yaml
artifacts:
paths:

        - pipeline/scripts/e2e/mochawesome-report/mochawesome.html
    reports:
        junit: pipeline/scripts/e2e/mochawesome-report/mochawesome.html
Paul Osagiobare
@paul.osagiobare_gitlab

In gitlab Artifact when I download the html report I get an empty test report. Please How can I solve this.
This is the code
package.json
"test": "mocha --reporter mocha-multi-reporters --reporter mochawesome --timeout 100000 --reporter-options configFile=.mocharc.json e2eTest/*.js",

yaml
artifacts:
paths:

        - pipeline/scripts/e2e/mochawesome-report/mochawesome.html
    reports:
        junit: pipeline/scripts/e2e/mochawesome-report/mochawesome.html

This reason is
file:///Users/testing/Downloads/pipeline%208/scripts/e2e/mochawesome-report/assets/app.css net::ERR_FILE_NOT_FOUND
so how do I add this to my pipeline assets/app.css

Helene Lejeune
@helenou
Hello, i've just discovered mochawesome for building and collating cypress reports. I want to use on Continuous Integration tool now saving the final report . Here is my config. publishHTML(target: [allowMissing : false, alwaysLinkToLastBuild: false, keepAll : true, reportDir : 'cypress/reports/mochareports', reportFiles : 'report.html', reportName : 'My_Mochawesome_cypress_Reports', reportTitles : 'Cypress Report']) }
I see @paul.osagiobare_gitlab speaks about empty report, which must be what i'm getting on CI with my current config, I think assets folder is necessary too
Paul Osagiobare
@paul.osagiobare_gitlab
@helenou this only works for cypress right?
Helene Lejeune
@helenou
I'm using mochawesome and generate a single html report with Cypress. I am trying to output to Jenkins console a simply formatted report from the collated json report: With fail, pass, skipped numbers and a list of error messages for my all specs. I see people mentioning toConsoleOutput which i have not used yet. But i can't find in documentation for i still wznt to build html report znd publishHtml with dedicated ci plugin
Dev
@Charan83
using addContext how can I change the suite title in my mochaawesome report, As per my understanding it takes the 'test' but how do we change the suits title
Adam Gruber
@adamgruber
You cannot change the suite title with addContext. The suite title comes from the describe block.
Dev
@Charan83
Any suggestion on what we can use to update the suite title
Adam Gruber
@adamgruber
Not sure I follow what you are trying to do. Examples and screenshots help.
Dev
@Charan83
@adamgruber got it, I did it using runnable.parent.title
@adamgruber I have another question, Im running my tests parallel in containers, each container has the same reports json file mochawesome.json, mochawesome_001.json,..... When Im moving them to a common location they are overridden.
Is there a way we can attach some unique(lish some hash) to the generated mochawesome.json filenames?
Dev
@Charan83
ok got it using timestamp
Dev
@Charan83
I have the mochawesome.json saved in artifacts / $podname / cypressreports /mochawesome-timestamp.json, artifacts / $podname1 / cypressreports /mochawesome-timestamp.json, artifacts / $podname2 / cypressreports /mochawesome-timestamp.json,
How can I merge all the .json files in this hierarchy
Dev
@Charan83
My mochawesome report has broken link after i added the image to the report using addContext. Anyone facing the same?
Anesh Parvatha
@0xc0d3r
Hey, can someone guide me how to use parallel mode programatically to generate mochawesome report?
Dev
@Charan83
Hi all,
Does anybody know, the location of zip file for the mochawesome report
Dev
@Charan83
Is there a way to change the context name that we are adding, currently it says 'Additional Test Context'
Adam Gruber
@adamgruber
There is currently no option to change that text
Bernabé Puente Moure
@robopilingui_twitter
Hello everyone. I am having a problem with the urls generated for failed tests. It is generating the decoded url and exception of the character '#'.
It is generating this for me: (example% 20 # 1)
when it should be generating this:% 28example% 20% 231% 29
In other words, it is generating the character '#' instead of '% 23'.
How can I solve that. Thanks a lot!!!
AkramPasha
@AkramPasha

Hello, im using below config in cypress.json but in docker container when suite is executed under mocha folder *json file are not generated , Could someone help me in this.

"reporter": "cypress-multi-reporters",
"reporterOptions": {
"reporterEnabled": "mochawesome",
"mochawesomeReporterOptions": {
"reportDir": "cypress/reports/mocha",
"quite": true,
"overwrite": false,
"html": false,
"json": true
}
},