{"action":"created","issue":{"url":"https://api.github.com/repos/redbrick-health/cuke-skywalker/issues/7","repository_url":"https://api.github.com/repos/redbrick-health/cuke-skywalker","labels_url":"https://api.github.com/repos/redbrick-health/cuke-skywalker/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/redbrick-health/cuke-skywalker/issues/7/comments","events_url":"https://api.github.com/repos/redbrick-health/cuke-skywalker/issues/7/events","html_url":"https://github.com/redbrick-health/cuke-skywalker/issues/7","id":355260721,"node_id":"MDU6SXNzdWUzNTUyNjA3MjE=","number":7,"title":"Tests Appear To Be Running Twice When I Execute Using Default Parameters","user":{"login":"bhreinb","id":20628685,"node_id":"MDQ6VXNlcjIwNjI4Njg1","avatar_url":"https://avatars0.githubusercontent.com/u/20628685?v=4","gravatar_id":"","url":"https://api.github.com/users/bhreinb","html_url":"https://github.com/bhreinb","followers_url":"https://api.github.com/users/bhreinb/followers","following_url":"https://api.github.com/users/bhreinb/following{/other_user}","gists_url":"https://api.github.com/users/bhreinb/gists{/gist_id}","starred_url":"https://api.github.com/users/bhreinb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhreinb/subscriptions","organizations_url":"https://api.github.com/users/bhreinb/orgs","repos_url":"https://api.github.com/users/bhreinb/repos","events_url":"https://api.github.com/users/bhreinb/events{/privacy}","received_events_url":"https://api.github.com/users/bhreinb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-29T17:30:56Z","updated_at":"2018-09-06T14:27:16Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\nI checked out your repo. It looks great. However it would seem the tests run twice when I run in parallel...\r\n\r\nMy use case is the following...\r\n1) I have 2 feature files that have a scenario each\r\n2) I use cucumber profiles for my test execution meaning I have a cucumber.js file at the project root folder\r\n3) 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\r\n\r\nPlease see the output from the test run below...\r\n\r\n```\r\n/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js run e2e-test-parallel --scripts-prepend-node-path=auto\r\n\r\n> testcafe-cucumber@0.1.0 e2e-test-parallel /Users/bhrein.brannick/Documents/src/testcafe-poc/testcafe-cucumber\r\n> node $NODE_DEBUG_OPTION ./node_modules/cuke-skywalker/bin/cuke-skywalker\r\n\r\nCucumber version: 4.2.1\r\nRunner Is Been Sent ./gherkin/**/*.feature --require ./step_definitions/*.js --require ./cucumber/*.js --dry-run\r\nDoling out 2 features across 4 workers as they are available.\r\n1 features remaining\r\n0 features remaining\r\nParallel Worker Thread Executing Feature File gherkin/github.feature\r\nRunner Is Been Sent gherkin/github.feature --require ./step_definitions/*.js --require ./cucumber/*.js --world-parameters '{\"browser\":\"chrome\"}'\r\nWorld Has Been Called By PID 18517\r\nRunning Test Scenario 'Searching for TestCafe on GitHub' Under PID 18517\r\n Running tests in:\r\n - Chrome 68.0.3440 / Mac OS X 10.13.6\r\n\r\n fixture\r\nThe Test Controller Is Ready Now\r\n..... ✓ test\r\n\r\n\r\n 1 passed (7s)\r\n.World Has Been Called By PID 18517\r\nRunning Test Scenario 'Searching for TestCafe on GitHub' Under PID 18517\r\n Running tests in:\r\n - Chrome 68.0.3440 / Mac OS X 10.13.6\r\n\r\n fixture\r\nThe Test Controller Is Ready Now\r\n..... ✓ test\r\n\r\n\r\n 1 passed (5s)\r\n.\r\n\r\n1 scenario (1 passed)\r\n4 steps (4 passed)\r\n0m29.826s\r\n\r\nParallel Worker Thread Executing Feature File gherkin/google.feature\r\nRunner Is Been Sent gherkin/google.feature --require ./step_definitions/*.js --require ./cucumber/*.js --world-parameters '{\"browser\":\"chrome\"}'\r\nWorld Has Been Called By PID 18518\r\nRunning Test Scenario 'Searching for TestCafe by Google' Under PID 18518\r\n Running tests in:\r\n - Chrome 68.0.3440 / Mac OS X 10.13.6\r\n\r\n fixture\r\nThe Test Controller Is Ready Now\r\n..... ✓ test (screenshots: reports/screenshots/2018-08-29_18-15-53/test-1)\r\n\r\n\r\n 1 passed (10s)\r\n.World Has Been Called By PID 18518\r\nRunning Test Scenario 'Searching for TestCafe by Google' Under PID 18518\r\n Running tests in:\r\n - Chrome 68.0.3440 / Mac OS X 10.13.6\r\n\r\n fixture\r\nThe Test Controller Is Ready Now\r\n..... ✓ test (screenshots: reports/screenshots/2018-08-29_18-16-11/test-1)\r\n\r\n\r\n 1 passed (8s)\r\n.\r\n\r\n1 scenario (1 passed)\r\n4 steps (4 passed)\r\n0m33.612s\r\n\r\n\r\nProcess finished with exit code 0\r\n```\r\nThe 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."},"comment":{"url":"https://api.github.com/repos/redbrick-health/cuke-skywalker/issues/comments/419113765","html_url":"https://github.com/redbrick-health/cuke-skywalker/issues/7#issuecomment-419113765","issue_url":"https://api.github.com/repos/redbrick-health/cuke-skywalker/issues/7","id":419113765,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTExMzc2NQ==","user":{"login":"tomatobrown","id":2249420,"node_id":"MDQ6VXNlcjIyNDk0MjA=","avatar_url":"https://avatars0.githubusercontent.com/u/2249420?v=4","gravatar_id":"","url":"https://api.github.com/users/tomatobrown","html_url":"https://github.com/tomatobrown","followers_url":"https://api.github.com/users/tomatobrown/followers","following_url":"https://api.github.com/users/tomatobrown/following{/other_user}","gists_url":"https://api.github.com/users/tomatobrown/gists{/gist_id}","starred_url":"https://api.github.com/users/tomatobrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomatobrown/subscriptions","organizations_url":"https://api.github.com/users/tomatobrown/orgs","repos_url":"https://api.github.com/users/tomatobrown/repos","events_url":"https://api.github.com/users/tomatobrown/events{/privacy}","received_events_url":"https://api.github.com/users/tomatobrown/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T14:27:16Z","updated_at":"2018-09-06T14:27:16Z","author_association":"CONTRIBUTOR","body":"Hey @bhreinb, I didn't completely dig into your problem either, but I believe it has something to do with that cucumber.js file you were using.  I'm not 100%, but I did refactor your example project into one that works correctly with cuke-skywalker.  The google test was failing, so I ignored it and copied the github one that was passing, you'll see.  \r\n\r\nAttached:\r\n[testcafe-cucumber.zip](https://github.com/redbrick-health/cuke-skywalker/files/2357446/testcafe-cucumber.zip)\r\n\r\nSample Run: \r\n`\r\ntmader-brown@RBH12588:~/github/testcafe-cucumber (master):/usr/local/bin/node node_modules/.bin/cuke-skywalker -t \"not @mute\"\r\nCucumber version: 4.2.1\r\nDoling out 2 features across 4 workers as they are available.\r\n1 features remaining\r\n0 features remaining\r\nWorld Has Been Called By PID 80915\r\nRunning Test Scenario 'Searching for TestCafe on GitHub2' Under PID 80915\r\n Running tests in:\r\n - Chrome 68.0.3440 / Mac OS X 10.13.6\r\n\r\n fixture\r\nThe Test Controller Is Ready Now\r\n..... ✓ test\r\n\r\n\r\n 1 passed (5s)\r\n.\r\n\r\n1 scenario (1 passed)\r\n4 steps (4 passed)\r\n0m12.579s\r\n\r\nWorld Has Been Called By PID 80914\r\nRunning Test Scenario 'Searching for TestCafe on GitHub' Under PID 80914\r\n Running tests in:\r\n - Chrome 68.0.3440 / Mac OS X 10.13.6\r\n\r\n fixture\r\nThe Test Controller Is Ready Now\r\n..... ✓ test\r\n\r\n\r\n 1 passed (5s)\r\n.\r\n\r\n1 scenario (1 passed)\r\n4 steps (4 passed)\r\n0m13.888s\r\n`\r\n"}}
{"actor":{"display_login":"tomatobrown"}}