Hi there,
I checked out your repo. It looks great. However it would seem the tests run twice when I run in parallel...
My use case is the following...
- I have 2 feature files that have a scenario each
- I use cucumber profiles for my test execution meaning I have a cucumber.js file at the project root folder
- The main thread I pass flag '--dry-run' so not to repeat running the tests again on the main thread. I set that within the cucumber.js profile file
Please see the output from the test run below...
/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js run e2e-test-parallel --scripts-prepend-node-path=auto
> testcafe-cucumber@0.1.0 e2e-test-parallel /Users/bhrein.brannick/Documents/src/testcafe-poc/testcafe-cucumber
> node $NODE_DEBUG_OPTION ./node_modules/cuke-skywalker/bin/cuke-skywalker
Cucumber version: 4.2.1
Runner Is Been Sent ./gherkin/**/*.feature --require ./step_definitions/*.js --require ./cucumber/*.js --dry-run
Doling out 2 features across 4 workers as they are available.
1 features remaining
0 features remaining
Parallel Worker Thread Executing Feature File gherkin/github.feature
Runner Is Been Sent gherkin/github.feature --require ./step_definitions/*.js --require ./cucumber/*.js --world-parameters '{"browser":"chrome"}'
World Has Been Called By PID 18517
Running Test Scenario 'Searching for TestCafe on GitHub' Under PID 18517
Running tests in:
- Chrome 68.0.3440 / Mac OS X 10.13.6
fixture
The Test Controller Is Ready Now
..... ✓ test
1 passed (7s)
.World Has Been Called By PID 18517
Running Test Scenario 'Searching for TestCafe on GitHub' Under PID 18517
Running tests in:
- Chrome 68.0.3440 / Mac OS X 10.13.6
fixture
The Test Controller Is Ready Now
..... ✓ test
1 passed (5s)
.
1 scenario (1 passed)
4 steps (4 passed)
0m29.826s
Parallel Worker Thread Executing Feature File gherkin/google.feature
Runner Is Been Sent gherkin/google.feature --require ./step_definitions/*.js --require ./cucumber/*.js --world-parameters '{"browser":"chrome"}'
World Has Been Called By PID 18518
Running Test Scenario 'Searching for TestCafe by Google' Under PID 18518
Running tests in:
- Chrome 68.0.3440 / Mac OS X 10.13.6
fixture
The Test Controller Is Ready Now
..... ✓ test (screenshots: reports/screenshots/2018-08-29_18-15-53/test-1)
1 passed (10s)
.World Has Been Called By PID 18518
Running Test Scenario 'Searching for TestCafe by Google' Under PID 18518
Running tests in:
- Chrome 68.0.3440 / Mac OS X 10.13.6
fixture
The Test Controller Is Ready Now
..... ✓ test (screenshots: reports/screenshots/2018-08-29_18-16-11/test-1)
1 passed (8s)
.
1 scenario (1 passed)
4 steps (4 passed)
0m33.612s
Process finished with exit code 0
The overall test results at the end list the scenario been run which passes although looking at the test run output unfortunately it does seem to execute the test twice. Observing the browser windows open that was my thinking but the log statements for me prove it beyond reasonable doubt. Thoughts? Let me know if you need any more info and thanks in advance.
Hi there,
I checked out your repo. It looks great. However it would seem the tests run twice when I run in parallel...
My use case is the following...
Please see the output from the test run below...
The overall test results at the end list the scenario been run which passes although looking at the test run output unfortunately it does seem to execute the test twice. Observing the browser windows open that was my thinking but the log statements for me prove it beyond reasonable doubt. Thoughts? Let me know if you need any more info and thanks in advance.