{"action":"created","issue":{"url":"https://api.github.com/repos/kotlintest/kotlintest/issues/6","repository_url":"https://api.github.com/repos/kotlintest/kotlintest","labels_url":"https://api.github.com/repos/kotlintest/kotlintest/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/kotlintest/kotlintest/issues/6/comments","events_url":"https://api.github.com/repos/kotlintest/kotlintest/issues/6/events","html_url":"https://github.com/kotlintest/kotlintest/issues/6","id":148566734,"number":6,"title":"New style like \"fun spec\", but with \"should\"","user":{"login":"helmbold","id":5079980,"avatar_url":"https://avatars.githubusercontent.com/u/5079980?v=3","gravatar_id":"","url":"https://api.github.com/users/helmbold","html_url":"https://github.com/helmbold","followers_url":"https://api.github.com/users/helmbold/followers","following_url":"https://api.github.com/users/helmbold/following{/other_user}","gists_url":"https://api.github.com/users/helmbold/gists{/gist_id}","starred_url":"https://api.github.com/users/helmbold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helmbold/subscriptions","organizations_url":"https://api.github.com/users/helmbold/orgs","repos_url":"https://api.github.com/users/helmbold/repos","events_url":"https://api.github.com/users/helmbold/events{/privacy}","received_events_url":"https://api.github.com/users/helmbold/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kotlintest/kotlintest/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"sksamuel","id":743706,"avatar_url":"https://avatars.githubusercontent.com/u/743706?v=3","gravatar_id":"","url":"https://api.github.com/users/sksamuel","html_url":"https://github.com/sksamuel","followers_url":"https://api.github.com/users/sksamuel/followers","following_url":"https://api.github.com/users/sksamuel/following{/other_user}","gists_url":"https://api.github.com/users/sksamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/sksamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sksamuel/subscriptions","organizations_url":"https://api.github.com/users/sksamuel/orgs","repos_url":"https://api.github.com/users/sksamuel/repos","events_url":"https://api.github.com/users/sksamuel/events{/privacy}","received_events_url":"https://api.github.com/users/sksamuel/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-04-15T06:32:55Z","updated_at":"2016-04-16T10:45:42Z","closed_at":"2016-04-16T10:45:42Z","body":"I've pretty good experience writing unit test methods starting with `should`. This simple words leads to much better names compared to `test`. Therefore I suggest, to support another style like fun spec, but using the word `should`. Example:\r\n\r\n    should(\"remove the last element from stack\") {\r\n      val stack = ListStack<String>()\r\n      stack.push(\"hello\")\r\n      stack.push(\"world\")\r\n      stack.size() shouldBe 2\r\n\r\n      val element = stack.pop() \r\n\r\n      element shouldBe \"world\"\r\n      stack.size() shouldBe 1\r\n    }\r\n\r\nCompared to the existing style with `test` it is even more concise, since it is already known what object is tested in a certain unit test class.  \r\n\r\n    should(\"remove the last element from stack\")\r\n    test(\"ListStack.pop should remove the last element from stack\")"},"comment":{"url":"https://api.github.com/repos/kotlintest/kotlintest/issues/comments/210788138","html_url":"https://github.com/kotlintest/kotlintest/issues/6#issuecomment-210788138","issue_url":"https://api.github.com/repos/kotlintest/kotlintest/issues/6","id":210788138,"user":{"login":"sksamuel","id":743706,"avatar_url":"https://avatars.githubusercontent.com/u/743706?v=3","gravatar_id":"","url":"https://api.github.com/users/sksamuel","html_url":"https://github.com/sksamuel","followers_url":"https://api.github.com/users/sksamuel/followers","following_url":"https://api.github.com/users/sksamuel/following{/other_user}","gists_url":"https://api.github.com/users/sksamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/sksamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sksamuel/subscriptions","organizations_url":"https://api.github.com/users/sksamuel/orgs","repos_url":"https://api.github.com/users/sksamuel/repos","events_url":"https://api.github.com/users/sksamuel/events{/privacy}","received_events_url":"https://api.github.com/users/sksamuel/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T10:45:42Z","updated_at":"2016-04-16T10:45:42Z","body":"This changes allows\r\n\r\nshould(\"some test\") { }\r\n\r\nand\r\n\r\n\"some text\" {\r\n   should(\"some test\") { }\r\n}"}}