-
-
Notifications
You must be signed in to change notification settings - Fork 752
Description
What are you trying to achieve?
I am trying to execute the gherkin scenarios in parallel using chunk functionality.
What do you get instead?
The scenarios are not executed in parallel. The chunk configuration is not taking effect.
Provide console output if related. Use
--verbosemode for more details.
Admins-MacBook-Pro:Codeceptv1 admin$ npm run test
> codecept_poc@1.0.0 test /Users/admin/Desktop/My_Data/QuantumJS/Codeceptv1
> codeceptjs run-multiple wiki
Use JS config file
undefined
Nothing scheduled for execution
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! codecept_poc@1.0.0 test: `codeceptjs run-multiple wiki`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the codecept_poc@1.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/admin/.npm/_logs/2018-10-31T13_21_59_165Z-debug.log
Provide test source code if related
console.log('Use JS config file');
console.log(process.profile);
var deviceCaps = require('./test-config/devices/deviceCaps.json')
exports.config = {
tests: './*_test.js',
timeout: 10000,
output: './output',
helpers: {
PerfectoWebDriverIO: {
action: "PerfectoWebDriverIO Test",
require: "./perfectowebdriverio.js",
url: "https://google.com/",
host: "<HOST>",
path: "<PATH>",
port: "<PORT>",
jobName: "PerfectoWebDriverIO Test Job",
buildNumber: 38,
branch: "Not Branched Yet",
projectName: "Perfecto-CodeceptJS Example Tests",
projectVersion: "v0.1a",
tags: ["codeceptjs", "webdriverio", "nodejs", "example tag"],
restart: false,
logLevel: "verbose",
desiredCapabilities: {
browserName: "Firefox",
user: "<USER>",
securityToken: "<TOKEN>",
platformName: "Windows",
platformVersion: "10",
browserVersion: "62",
resolution: "1280x1024",
location: "US East"
}
}
},
mocha: {
reporterOptions: {
mochaFile: './output/result.xml',
},
},
name: 'tests',
bootstrap: './bootstrap.js',
include: {
I: "./custom_steps.js",
Smth: "./pages/Smth.js",
loginPage: "./pages/Login.js",
signinFragment: "./fragments/Signin.js"
},
gherkin: {
features: "./features/*.feature",
steps: [
"./step_definitions/steps.js",
"./step_definitions/wiki_steps.js"
]
},
timeout: 10000,
multiple: deviceCaps
};DeviceCaps.json file:
{
"wiki": {
"chunks": 2,
"browsers": [
{
"browser": "Firefox",
"browserName": "Firefox",
"user": "kulins@perfectomobile.com",
"securityToken": "",
"platformName": "Windows",
"platformVersion": "10",
"browserVersion": "62",
"resolution": "1280x1024",
"location": "US East"
},
{
"browser": "Chrome",
"browserName": "Chrome",
"user": "",
"securityToken": "",
"platformName": "Windows",
"platformVersion": "10",
"browserVersion": "70",
"resolution": "1280x1024",
"location": "US East"
}
],
"grep": "@wiki"
}
}
Details
- CodeceptJS version: 1.4.4
- NodeJS Version: 5.7.1
- Operating System: Mac
- Protractor || WebDriverIO || Nightmare version (if related) WebdriverIO
- Configuration file: Shared above