{"action":"closed","issue":{"url":"https://api.github.com/repos/JetBrains/spek/issues/135","repository_url":"https://api.github.com/repos/JetBrains/spek","labels_url":"https://api.github.com/repos/JetBrains/spek/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/spek/issues/135/comments","events_url":"https://api.github.com/repos/JetBrains/spek/issues/135/events","html_url":"https://github.com/JetBrains/spek/issues/135","id":192272893,"number":135,"title":"Test Generation doesn't seem to work correctly","user":{"login":"sazzer","id":66072,"avatar_url":"https://avatars.githubusercontent.com/u/66072?v=3","gravatar_id":"","url":"https://api.github.com/users/sazzer","html_url":"https://github.com/sazzer","followers_url":"https://api.github.com/users/sazzer/followers","following_url":"https://api.github.com/users/sazzer/following{/other_user}","gists_url":"https://api.github.com/users/sazzer/gists{/gist_id}","starred_url":"https://api.github.com/users/sazzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sazzer/subscriptions","organizations_url":"https://api.github.com/users/sazzer/orgs","repos_url":"https://api.github.com/users/sazzer/repos","events_url":"https://api.github.com/users/sazzer/events{/privacy}","received_events_url":"https://api.github.com/users/sazzer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-29T12:48:22Z","updated_at":"2016-11-29T15:45:20Z","closed_at":"2016-11-29T15:45:20Z","body":"I'm trying to write some tests using Spek to cover a large range of input and expected output values. As such, I'm trying to generate the tests by having a single *performTest* method that takes the input values, and contains two *it* calls inside it.\r\n\r\nEssentially what I have is:\r\n```\r\nfun performTest(input: Input, expectedOutput: Output) {\r\n    // perform setup here\r\n    // perform test here\r\n    it(\"should do this\") {\r\n    }\r\n    it(\"should do that\") {\r\n    }\r\n}\r\n\r\ndescribe(\"situation 1\") {\r\n    describe(\"input 1\") {\r\n        performTest(1, 2)\r\n    }\r\n    describe(\"input 2\") {\r\n        performTest(2, 4)\r\n    }\r\n}\r\ndescribe(\"situation 2\") {\r\n    describe(\"input 1\") {\r\n        performTest(1, 2)\r\n    }\r\n    describe(\"input 2\") {\r\n        performTest(2, 4)\r\n    }\r\n}\r\n```\r\n\r\nWhich seems reasonable. Unfortunately it doesn't work as expected. Instead of getting the tree of describe -> describe -> it, I only get a single *it* at the top level, and then because I have multiple of these at the same level with the same name, it doesn't run them all.\r\n\r\nThis is happening both in IntelliJ and in Maven, with the JUnit Platform runner set up for both."}}
{"actor":{"display_login":"raniejade"}}