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)
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
}
},
Hi peeps, it seems mochawesome is not able to understand the reporterOptions
my .mocharc contains below configuration -
parallel: true,
jobs: 2,
reporter: 'mochawesome',
reporterOptions: {
reportDir: './test-reports/',
reportFilename:'master-report',
saveHtml: true,
saveJson: true,
charts: true,
showSkipped: true,
overwrite: true
},
It seems the report options are ignored always
the dep versions:
"mocha": "^8.2.1",
"mochawesome": "^6.2.2",
"mochawesome-report-generator": "^5.2.0",
any guidance would help.
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"inlineAssets": true,
"reporterEnabled": "cypress-mochawesome-reporter, mocha-junit-reporter",
"mochaJunitReporterReporterOptions": {
"mochaFile": "cypress/reports/junit/results-[hash].xml"
},
"cypressMochawesomeReporterReporterOptions": {
"charts": true,
"reportPageTitle": "custom-title"
}
},
"video": false
async.series ([
function(cb) {
addContext(this, 'some context');
], done)
ERROR @wdio/cli:utils: Error in onCompleteHook: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
hello Guys,
can you please help with mocha reporting,
cypresstest@1.0.0 cypress:generatereport
npx mochawesome-merge cypress/results/*.json>mochawesome.json && npx mochawesome-report-generator mochawesome.json -o
cypress/results --charts true -f index.html -t 'HDP Regression Run' -p 'HDP Regression Run'
ERROR: Failed to merge reports
Error: Pattern cypress/results/*.json matched no report files
thisis how my package json looks,
"cypress:generatereport": "npx mochawesome-merge cypress/results/*.json>mochawesome.json && npx mochawesome-report-generator mochawesome.json -o cypress/results --charts true -f index.html -t 'HDP Regression Run' -p 'HDP Regression Run'"
},
"author": "",
"license": "ISC",
"devDependencies": {
"cypress": "^9.0.0",
"cypress-file-upload": "3.5.0",
"cypress-mailosaur": "^2.0.1",
"mocha": "^9.1.3",
"mochawesome": "^7.0.1",
"mochawesome-merge": "^4.2.0",
"mochawesome-report-generator": "^6.0.1",
"semistandard": "^16.0.1"
},
and cypress.json
"reporter": "mochawesome",
"reporterOptions": {
"files": [
"cypress/results/*.json"
],
"overwrite": false,
"html": false,
"json": true
}
[
{
"description": "Key Navigation Tabs tests PRIMARY-ACCOUNT-CENTRIC Main tabs load correctly",
"assertions": [
{
"passed": true
}
],
"duration": 20560
},
{
"description": "Key Navigation Tabs tests VIRTUAL-ACCOUNT-CENTRIC Main tabs load correctly",
"assertions": [
{
"passed": true
}
],
"duration": 13862
},
{
"description": "Key Navigation Tabs tests PRIMARY-USER-CENTRIC Main tabs load correctly",
"assertions": [
{
"passed": true
}
],
"duration": 18957
}
]
Hello!
I just got started with mochawesome a couple days ago- everything so far is configured well and I can merge/generator a nice report. The odd thing that I notice is that every step's code output, whether passing or failing, is the same.
const state = window.testState;
return cy
.then(() => state.onStartScenario(scenario, indexedSteps))
.then(() =>
resolveAndRunBeforeHooks.call(this, scenario.tags, state.feature.name)
)
.then(() =>
indexedSteps.forEach((step) =>
stepTest.call(this, state, step, rowData)
)
)
.then(() => state.onFinishScenario(scenario));
Is this something from mochawesome or is it from Cypress itself?