{"action":"closed","issue":{"url":"https://api.github.com/repos/temyers/cucumber-jvm-parallel-plugin/issues/169","repository_url":"https://api.github.com/repos/temyers/cucumber-jvm-parallel-plugin","labels_url":"https://api.github.com/repos/temyers/cucumber-jvm-parallel-plugin/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/temyers/cucumber-jvm-parallel-plugin/issues/169/comments","events_url":"https://api.github.com/repos/temyers/cucumber-jvm-parallel-plugin/issues/169/events","html_url":"https://github.com/temyers/cucumber-jvm-parallel-plugin/issues/169","id":322023499,"number":169,"title":"using SCENARIO as parallelScheme caused a runner executing whole feature rather than just 1 scenario","user":{"login":"naveedriay","id":6206798,"avatar_url":"https://avatars1.githubusercontent.com/u/6206798?v=4","gravatar_id":"","url":"https://api.github.com/users/naveedriay","html_url":"https://github.com/naveedriay","followers_url":"https://api.github.com/users/naveedriay/followers","following_url":"https://api.github.com/users/naveedriay/following{/other_user}","gists_url":"https://api.github.com/users/naveedriay/gists{/gist_id}","starred_url":"https://api.github.com/users/naveedriay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveedriay/subscriptions","organizations_url":"https://api.github.com/users/naveedriay/orgs","repos_url":"https://api.github.com/users/naveedriay/repos","events_url":"https://api.github.com/users/naveedriay/events{/privacy}","received_events_url":"https://api.github.com/users/naveedriay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-10T17:56:09Z","updated_at":"2018-05-30T17:38:43Z","closed_at":"2018-05-30T17:38:43Z","author_association":"NONE","body":"In my project, i am using latest verison [5.0.0] of cucumber-jvm-parallel-plugin and want to use `<parallelScheme>SCENARIO</parallelScheme>` feature. \r\n\r\n**PROBLEM IS** that, for a feature file with 5 scenarios in it, this mechanism generates 5 runners but each of those 5 runners will run all 5 scenarios within that feature file and not just 1 scenario. i.e. a scenario gets executed 5 times (once for each of the runner).\r\n\r\n**My POM.XML looks like this.**\r\n```\r\n<plugin>\r\n  <groupId>com.github.temyers</groupId>\r\n  <artifactId>cucumber-jvm-parallel-plugin</artifactId>\r\n  <version>5.0.0</version>\r\n  <executions>\r\n     <execution>\r\n     <id>generateRunners</id>\r\n     <phase>validate</phase>\r\n\t<goals>\r\n\t\t<goal>generateRunners</goal>\r\n\t</goals>\r\n\t<configuration>\r\n\t\t<glue>\r\n\t\t    <package>com.test.api.step_definitions</package>\r\n\t\t</glue>\r\n\t\t<outputDirectory>${project.build.directory}/generated-test-sources/cucumber</outputDirectory>\r\n\t\t<featuresDirectory>src/main/resources/cucumber</featuresDirectory>\r\n\t\t<cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir>\r\n\t\t<strict>true</strict>\r\n\t\t<monochrome>true</monochrome>\r\n\t\t<tags>\r\n\t\t\t<tag>@broker</tag>\r\n\t\t\t<tag>~@ignore</tag>\r\n\t\t</tags>\r\n\t\t<namingScheme>simple</namingScheme>\r\n\t\t<parallelScheme>SCENARIO</parallelScheme>\r\n\t\t<plugins>\r\n\t\t   <plugin>\r\n\t\t\t<name>json</name>\r\n\t\t   </plugin>\r\n\t\t   <plugin>\r\n\t\t\t<name>html</name>\r\n\t\t   </plugin>\r\n\t\t</plugins>\r\n\t</configuration>\r\n    </execution>\r\n  </executions>\r\n</plugin>\r\n<plugin>\r\n\t<groupId>org.apache.maven.plugins</groupId>\r\n\t<artifactId>maven-surefire-plugin</artifactId>\r\n\t<version>2.21.0</version>\r\n\t<configuration>\r\n\t\t<rerunFailingTestsCount>1</rerunFailingTestsCount>\r\n\t</configuration>\r\n\t<executions>\r\n\t\t<execution>\r\n\t\t\t<id>acceptance-test</id>\r\n\t\t\t<phase>integration-test</phase>\r\n\t\t\t<goals>\r\n\t\t\t\t<goal>test</goal>\r\n\t\t\t</goals>\r\n\t\t\t<configuration>\r\n\t\t\t\t<forkCount>1</forkCount>\r\n\t\t\t\t<reuseForks>true</reuseForks>\r\n\t\t\t\t<includes>\r\n\t\t\t\t\t<include>**/*IT.class</include>\r\n\t\t\t\t</includes>\r\n\t\t\t\t<systemProperties>\r\n\t\t\t\t\t<buildDirectory>${project.build.directory}</buildDirectory>\r\n\t\t\t\t</systemProperties>\r\n\t\t\t</configuration>\r\n\t\t</execution>\r\n\t</executions>\r\n</plugin>\r\n```\r\n\r\nAlso, i have used following dependencies from <io.cucumber>\r\n```\r\n<dependency>\r\n\t<groupId>io.cucumber</groupId>\r\n\t<artifactId>cucumber-java</artifactId>\r\n\t<version>2.4.0</version>\r\n</dependency>\r\n<dependency>\r\n\t<groupId>io.cucumber</groupId>\r\n\t<artifactId>cucumber-junit</artifactId>\r\n\t<version>2.4.0</version>\r\n</dependency>\r\n<dependency>\r\n\t<groupId>io.cucumber</groupId>\r\n\t<artifactId>cucumber-spring</artifactId>\r\n\t<version>2.4.0</version>\r\n</dependency>\r\n<dependency>\r\n\t<groupId>io.cucumber</groupId>\r\n\t<artifactId>cucumber-jvm</artifactId>\r\n\t<version>2.4.0</version>\r\n\t<type>pom</type>\r\n</dependency>\r\n```\r\n\r\nAlthough the Runner generated as part of above test run, actually shows the correct scenario Line number in its features options but it still executes the whole lot feature file not just that scenario\r\n```@RunWith(Cucumber.class)\r\n@CucumberOptions(\r\n        strict = true,\r\n        features = {\"auto/src/main/resources/cucumber/broker/broker.feature:20\"},\r\n        plugin = {\"json:auto/target/cucumber-parallel/1.json\", \"html:auto/target/cucumber-parallel/1\"},\r\n        monochrome = true,\r\n        glue = {\"com.test.api.step_definitions\"})\r\npublic class Parallel01IT {\r\n}`\r\n"}}
{"actor":{"display_login":"mpkorstanje"}}