{"action":"closed","issue":{"url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/468","repository_url":"https://api.github.com/repos/cucumber/cucumber-jvm","labels_url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/468/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/468/comments","events_url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/468/events","html_url":"https://github.com/cucumber/cucumber-jvm/issues/468","id":11542687,"number":468,"title":"Cucumber tests fails when run with Gradle test task. (Gradle 1.4)","user":{"login":"karaaie","id":7555,"avatar_url":"https://avatars0.githubusercontent.com/u/7555?v=4","gravatar_id":"","url":"https://api.github.com/users/karaaie","html_url":"https://github.com/karaaie","followers_url":"https://api.github.com/users/karaaie/followers","following_url":"https://api.github.com/users/karaaie/following{/other_user}","gists_url":"https://api.github.com/users/karaaie/gists{/gist_id}","starred_url":"https://api.github.com/users/karaaie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karaaie/subscriptions","organizations_url":"https://api.github.com/users/karaaie/orgs","repos_url":"https://api.github.com/users/karaaie/repos","events_url":"https://api.github.com/users/karaaie/events{/privacy}","received_events_url":"https://api.github.com/users/karaaie/received_events","type":"User","site_admin":false},"labels":[{"id":141333,"url":"https://api.github.com/repos/cucumber/cucumber-jvm/labels/Bug","name":"Bug","color":"b60205","default":false},{"id":731701190,"url":"https://api.github.com/repos/cucumber/cucumber-jvm/labels/stale","name":"stale","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2013-03-01T12:27:53Z","updated_at":"2017-11-02T19:21:14Z","closed_at":"2017-11-02T19:21:14Z","author_association":"NONE","body":"Hello, I'm experiencing some problems when I try to run Cucumber-jvm tests. The file RunCukesTest is annotated with @RunWith(Cucumber.class). It can be seen below.\n- What went wrong:\n  Execution failed for task ':test'.\n  > Could not write XML test results for com.assaabloy.stg.a3p.acceptancetests.RunCukesTest to file C:\\Dev\\Jobb\\arx_trunk\\server-rt\\AccteptanceTests\\build\\test-results\\TEST-com.assaabloy.stg.a3p.acceptancetests.RunCukesTest.xml.\n\nAlso I've been able to verify that the tests run and succeed in Intellij. In my quest to solve this on my own I checked out the gradle source code and ran som debugging on my own. I managed to narrow it down to that when writing the xml-report file the last test doesn't have a name which makes the method write in the class JUnitXmlResultWriter at the row .attribute(\"name\", methodResult.getName()) throw a null pointer.\n\nThe test suite reports 4 tests for a scenario with three steps in it:\n\nScenario: Blabha lba\nGiven: assdf\nWhen: aslkdfj\nThen: asdf\n\nThe given, when and then steps succeed and have a name, but then a fourth TestMethodResult is added which I belive is the conclusion of the scenario and that one lacks a name.\n\nI'm not sure if this is a bug with Gradle test which can't handle test methods with null names or if this is a problem with cucumber-jvm, thus I'll post this here and also on the gradle issue tracker.\n\nBest regards, Kamil\n"}}
{"actor":{"display_login":"stale"}}