jody-zeitler / cuke-skywalker Goto Github PK
View Code? Open in Web Editor NEWDistribute Cucumber features to workers run in parallel
License: MIT License
Distribute Cucumber features to workers run in parallel
License: MIT License
cucumber@4 was released last month. Update our peer dependency and make sure it's compatible. It doesn't appear to break anything we rely upon.
A cool feature to add would be a way to print out the runtime per thread as well as the total runtime of the execution
node ./node_modules/cuke-skywalker/bin/cuke-skywalker
Cucumber version: 4.2.1
Doling out 2 features across 4 workers as they are available.
1 features remaining
0 features remaining
'.' is not recognized as an internal or external command,
operable program or batch file.
Error: worker exited with code 1
at ChildProcess.worker.on (C:\Bitbucket\Reckon.Stp.Jellyfish\node_modules\cuke-skywalker\index.js:162:12)
at ChildProcess.emit (events.js:159:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
'.' is not recognized as an internal or external command,
operable program or batch file.
Error: worker exited with code 1
at ChildProcess.worker.on (C:\Bitbucket\Reckon.Stp.Jellyfish\node_modules\cuke-skywalker\index.js:162:12)
at ChildProcess.emit (events.js:159:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
2 workers had failures.
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...
/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js run e2e-test-parallel --scripts-prepend-node-path=auto
> [email protected] 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.