{"action":"created","issue":{"url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/390","repository_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting","labels_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/390/comments","events_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/390/events","html_url":"https://github.com/damianszczepanik/cucumber-reporting/issues/390","id":145745165,"number":390,"title":"Getting Error On Report Generation.","user":{"login":"arjunray12","id":5012549,"avatar_url":"https://avatars.githubusercontent.com/u/5012549?v=3","gravatar_id":"","url":"https://api.github.com/users/arjunray12","html_url":"https://github.com/arjunray12","followers_url":"https://api.github.com/users/arjunray12/followers","following_url":"https://api.github.com/users/arjunray12/following{/other_user}","gists_url":"https://api.github.com/users/arjunray12/gists{/gist_id}","starred_url":"https://api.github.com/users/arjunray12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjunray12/subscriptions","organizations_url":"https://api.github.com/users/arjunray12/orgs","repos_url":"https://api.github.com/users/arjunray12/repos","events_url":"https://api.github.com/users/arjunray12/events{/privacy}","received_events_url":"https://api.github.com/users/arjunray12/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-04T17:07:32Z","updated_at":"2016-04-04T20:07:26Z","closed_at":"2016-04-04T20:07:26Z","body":"I am using a Cucumber reporting api for better reporting. My project is not a maven project and cannot change the project structure now. So I add all the dependency on my project but still now it is getting error like \"java.lang.IllegalArgumentException: File 'target/cucumber.json' does not contan features!\"\r\n\r\nAll added jars and version showing below.\r\n\r\n![img1](https://cloud.githubusercontent.com/assets/5012549/14258286/752b1c92-fabf-11e5-8d2e-f14b1dc2d529.JPG)\r\n\r\n\r\nI also added my runner class here which may help for debugging.\r\n\r\n          import java.io.File;\r\n          import java.util.ArrayList;\r\n          import java.util.List;\r\n          import org.junit.AfterClass;\r\n          import org.junit.runner.RunWith;\r\n          import cucumber.api.CucumberOptions;\r\n          import cucumber.api.SnippetType;\r\n          import cucumber.api.junit.Cucumber;\r\n          import net.masterthought.cucumber.Configuration;\r\n          import net.masterthought.cucumber.ReportBuilder;\r\n         @RunWith(Cucumber.class)\r\n\r\n         @CucumberOptions(\r\n          plugin = { \r\n                \"html:target/cucumber-html-report\",\r\n                \"json:target/cucumber.json\"\r\n          },features ={\"./sample.feature\"},\r\n            glue ={\"com/automation/steps\"},strict = true,\r\n            dryRun= false,monochrome = true, snippets= SnippetType.CAMELCASE)\r\n\r\n       public class Runner {\r\n           @AfterClass\r\n             public static void generateReport(){\r\n             File reportOutputDirectory = new File(\"target\");\r\n             List<String> jsonFiles = new ArrayList<>();\r\n             jsonFiles.add(\"target/cucumber.json\");\r\n\r\n        String jenkinsBasePath = \"\";\r\n        String buildNumber = \"1\";\r\n        String projectName = \"cucumber-jvm\";\r\n        boolean skippedFails = true;\r\n        boolean pendingFails = false;\r\n        boolean undefinedFails = true;\r\n        boolean missingFails = true;\r\n        boolean runWithJenkins = false;\r\n        boolean parallelTesting = false;\r\n\r\n        Configuration configuration = new Configuration(reportOutputDirectory, projectName);\r\n        // optionally only if you need\r\n        configuration.setStatusFlags(skippedFails, pendingFails, undefinedFails, missingFails);\r\n        configuration.setParallelTesting(parallelTesting);\r\n        configuration.setJenkinsBasePath(jenkinsBasePath);\r\n        configuration.setRunWithJenkins(runWithJenkins);\r\n        configuration.setBuildNumber(buildNumber);\r\n\r\n        ReportBuilder reportBuilder = new ReportBuilder(jsonFiles, configuration);\r\n        reportBuilder.generateReports();\r\n    }\r\n}\r\n\r\nI also attached the project structure.\r\n\r\n![proj_structure](https://cloud.githubusercontent.com/assets/5012549/14256441/bf9c37ce-fab6-11e5-88a2-e4c9624852e9.JPG)\r\n\r\nI observed that feature-overview.html was generated under the folder structure but it was corrupted.\r\n![error_html](https://cloud.githubusercontent.com/assets/5012549/14258347/c5197104-fabf-11e5-996d-ee8b35786bef.JPG)\r\n\r\nwhen I open this file I observed this error message on this file.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/comments/205472631","html_url":"https://github.com/damianszczepanik/cucumber-reporting/issues/390#issuecomment-205472631","issue_url":"https://api.github.com/repos/damianszczepanik/cucumber-reporting/issues/390","id":205472631,"user":{"login":"damianszczepanik","id":9612911,"avatar_url":"https://avatars.githubusercontent.com/u/9612911?v=3","gravatar_id":"","url":"https://api.github.com/users/damianszczepanik","html_url":"https://github.com/damianszczepanik","followers_url":"https://api.github.com/users/damianszczepanik/followers","following_url":"https://api.github.com/users/damianszczepanik/following{/other_user}","gists_url":"https://api.github.com/users/damianszczepanik/gists{/gist_id}","starred_url":"https://api.github.com/users/damianszczepanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianszczepanik/subscriptions","organizations_url":"https://api.github.com/users/damianszczepanik/orgs","repos_url":"https://api.github.com/users/damianszczepanik/repos","events_url":"https://api.github.com/users/damianszczepanik/events{/privacy}","received_events_url":"https://api.github.com/users/damianszczepanik/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T20:07:26Z","updated_at":"2016-04-04T20:07:26Z","body":"The configuration is fine, json file is found but it is not valid, does not contain features"}}