I'm using the protractor-cucumber framework which comes decoupled from protractor. My protractor version 4.0.9 which got pushed out last night.
My issue:
When running protractor in parallel with: protractor protractor.conf.js
the generated results JSON file only shows the last test to complete. Basically, that JSON file is overriding itself so our Bamboo cucumber plugin only shows only a single test result when there were multiple test-feature files that did.
For example, if you have 2 tests and your config is set up like this:
//Protractor.conf.js
multiCapabilities: [{
'browserName': 'chrome',
maxInstances: 1,
shardTestFiles: true,
}, {
'browserName': 'chrome',
shardTestFiles: true,
maxInstances: 1,
},],
OR even like this:
multiCapabilities: [{
'browserName': 'chrome',
maxInstances: 2,
shardTestFiles: true,
}],
And my cucumberOpts:
cucumberOpts: {
require: [
conf.paths.e2e + '/steps/**/*Steps.js',
conf.paths.e2e + '/hooks.js',
conf.paths.e2e + '/env.js',//For Cucumber framework i.e framework: custom
conf.paths.e2e + '/otherHooks.js',
],
tags: ['~@wip', '~@manual'],
format: 'pretty',
//'fail-fast': true
}
This will pop up 2 chrome instances, but at the end, each instance will generate its own JSON result file instead of a single cumulative json result file.
How can I consolidate the results from all chrome instances that ran in parallel into a single JSON result file so our Bamboo cucumber plugin can display all the tests that ran in parallel and not just the last one which took longer to complete?
Again I want to generate a SINGLE json file with all of the results at the end and NOT many json files, just for clarification; thanks again for looking into this issue which I"m sure a ton of people are struggling with right now.