Closed
Description
I'm using Cypress to run my e2e testing on Browserstack. I'm using junit
reporter which is configured in the cypress.json. When I'm running tests locally test results are generated according to the format (i.e junit). However, when I'm running testing in Browserstack and fetch the results, they are not following the cypress config and are returned as mocha report files (json/html) instead of junit (xml).
cypress.json
{
"reporter": "junit",
"reporterOptions": {
"mochaFile": "results/test-output-[hash].xml",
"toConsole": true,
"attachments": true
}
}
browserstack.json
{
"auth": {...},
"browsers": [...],
"run_settings": {
"cypress_config_file": "./cypress.json",
"cypress_version": "6",
"project_name": "FancyProjectName",
"build_name": "Build no. 42",
"parallels": "2",
"npm_dependencies": {
"typescript": "^4.2.4"
}
}
}