I am trying to run my tests headless and shard both my test suites to run them in parallel. On my local machine they run in parallel, but in this headless setup they run one after the other. I am using Docker images for the web driver and protractor.
I am using the webnicer-protractor Docker image: https://hub.docker.com/r/webnicer/protractor-headless/ and am using elgalu/selenium for the web driver.
My conf.js file that I run looks like this:
exports.config = {
//Headless
//seleniumAddress: 'http://localhost:4444/wd/hub',
seleniumAddress: 'http://localhost:24444/wd/hub',
capabilities: {
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 2
},
specs: ['Suites/AccountSettingsSuite.js', 'Suites/CloneDashboardSuite.js']
}