adamgruber on 3.0.1
adamgruber on 3.0.0
adamgruber on master
Update CHANGELOG.md (compare)
adamgruber on master
Release 3.0.1 [ci skip] (compare)
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.
@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
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)
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?
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
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
publishHTML(target: [allowMissing : false,
alwaysLinkToLastBuild: false,
keepAll : true,
reportDir : 'cypress/reports/mochareports',
reportFiles : 'report.html',
reportName : 'My_Mochawesome_cypress_Reports',
reportTitles : 'Cypress Report'])
}
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
}
},