{"action":"created","issue":{"url":"https://api.github.com/repos/intuit/karate/issues/537","repository_url":"https://api.github.com/repos/intuit/karate","labels_url":"https://api.github.com/repos/intuit/karate/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/intuit/karate/issues/537/comments","events_url":"https://api.github.com/repos/intuit/karate/issues/537/events","html_url":"https://github.com/intuit/karate/issues/537","id":362731640,"node_id":"MDU6SXNzdWUzNjI3MzE2NDA=","number":537,"title":"Cucumber.parallelrunner is skipping files in 0.9.0.RC3 compared to 0.8.0.1","user":{"login":"sauravkumar05","id":11820297,"node_id":"MDQ6VXNlcjExODIwMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/11820297?v=4","gravatar_id":"","url":"https://api.github.com/users/sauravkumar05","html_url":"https://github.com/sauravkumar05","followers_url":"https://api.github.com/users/sauravkumar05/followers","following_url":"https://api.github.com/users/sauravkumar05/following{/other_user}","gists_url":"https://api.github.com/users/sauravkumar05/gists{/gist_id}","starred_url":"https://api.github.com/users/sauravkumar05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sauravkumar05/subscriptions","organizations_url":"https://api.github.com/users/sauravkumar05/orgs","repos_url":"https://api.github.com/users/sauravkumar05/repos","events_url":"https://api.github.com/users/sauravkumar05/events{/privacy}","received_events_url":"https://api.github.com/users/sauravkumar05/received_events","type":"User","site_admin":false},"labels":[{"id":534240662,"node_id":"MDU6TGFiZWw1MzQyNDA2NjI=","url":"https://api.github.com/repos/intuit/karate/labels/invalid","name":"invalid","color":"e6e6e6","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-21T18:40:56Z","updated_at":"2018-09-22T21:01:59Z","closed_at":"2018-09-22T00:54:15Z","author_association":"NONE","body":"I have the same code base which breaks when switched from 0.8.0.1 to 0.9.0.RC3. I am using the CucumberRunner.parallel method where i give the tags,filesas list,thread,karateOutputPath\r\n\r\nI am using the below code and my feature files in the directory doesn't have any @wip tag on the scenarios.\r\n\r\ngetTags method is basically returning a list with only ~@wip tag so I am basically giving input where I want to run every scenario other than wip tag in that folder.\r\n\r\n public void testParallel() {\r\n    String karateOutputPath = \"target/surefire-reports\";\r\n    String featureDir = \"src/test/resources/features/a\";\r\n    KarateStats stats = CucumberRunner.parallel(getTags(), Utils.getFilesByType(\"src/test/resources/features/a\",new String[] {\"feature\"},true), 1, karateOutputPath);\r\n}\r\nmvn -Denv=QA1 -Doptions=\"--tags ~@wip\" -DfeatureDir=\"src/test/resources/features/a\" clean test\r\n\r\n13:16:41.042 [main] INFO c.i.karate.cucumber.CucumberRunner - Karate version: 0.9.0.RC3 13:16:41.237 [pool-1-thread-1] INFO c.i.karate.cucumber.CucumberRunner - <\\<skip>> feature 1 of 2: \\src\\test\\resources\\features\\a\\A.feature \r\n13:16:41.246 [pool-1-thread-1] INFO c.i.karate.cucumber.CucumberRunner - <\\<skip>> feature 2 of 2: \\src\\test\\resources\\features\\a\\B.feature"},"comment":{"url":"https://api.github.com/repos/intuit/karate/issues/comments/423773181","html_url":"https://github.com/intuit/karate/issues/537#issuecomment-423773181","issue_url":"https://api.github.com/repos/intuit/karate/issues/537","id":423773181,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzc3MzE4MQ==","user":{"login":"sauravkumar05","id":11820297,"node_id":"MDQ6VXNlcjExODIwMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/11820297?v=4","gravatar_id":"","url":"https://api.github.com/users/sauravkumar05","html_url":"https://github.com/sauravkumar05","followers_url":"https://api.github.com/users/sauravkumar05/followers","following_url":"https://api.github.com/users/sauravkumar05/following{/other_user}","gists_url":"https://api.github.com/users/sauravkumar05/gists{/gist_id}","starred_url":"https://api.github.com/users/sauravkumar05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sauravkumar05/subscriptions","organizations_url":"https://api.github.com/users/sauravkumar05/orgs","repos_url":"https://api.github.com/users/sauravkumar05/repos","events_url":"https://api.github.com/users/sauravkumar05/events{/privacy}","received_events_url":"https://api.github.com/users/sauravkumar05/received_events","type":"User","site_admin":false},"created_at":"2018-09-22T21:01:59Z","updated_at":"2018-09-22T21:01:59Z","author_association":"NONE","body":"@ptrthomas files dont have to get skipped when tag doesn't exist in them .  I was trying to create a sample for this issue but i dont see the issue with the sample i created either with 0.8.0.1 or 0.9.0.RC3 in my non-work laptop. Not sure why it was failing with my other computer with the same exact thing. if you pass the tag as ~tagthatdoesntexist and the tag is not part of any scenario or feature the scenario will be executed. That is the correct behavior and the sample mentioned below actually runs both the feature file and that is expected. I need to see whats going on with my other computer where these samples were skipped.\r\n\r\n    @Test\r\n    public void run(){\r\n        List<String> tags = new ArrayList<String>();\r\n        tags.add(\"~@wip\");\r\n        KarateStats stats = CucumberRunner.parallel(tags,new ArrayList<>(Arrays.asList(\"src/test/resources/features/test.feature\",\"src/test/resources/features/x.feature\")),3,\"target/surefire-reports\");\r\n    }\r\n\r\n-----------------------------------------------------------------------------------------\r\ntest.feature\r\n@y\r\nFeature: sample\r\n\r\n  @x\r\n  Scenario: sample test\r\n    Given def x = { y : \"20\"}\r\n    Then print x\r\n-----------------------------------------------------------------------------------------\r\nx.feature\r\n@y\r\nFeature: sample\r\n\r\n  @y\r\n  Scenario: sample test\r\n    Given def x = { y : \"20\"}\r\n    Then print x"}}
{"actor":{"display_login":"sauravkumar05"}}