{"action":"created","issue":{"url":"https://api.github.com/repos/TNG/JGiven/issues/90","labels_url":"https://api.github.com/repos/TNG/JGiven/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/TNG/JGiven/issues/90/comments","events_url":"https://api.github.com/repos/TNG/JGiven/issues/90/events","html_url":"https://github.com/TNG/JGiven/issues/90","id":95173281,"number":90,"title":"Hierarchy for Tags or Tests","user":{"login":"ahus1","id":3957921,"avatar_url":"https://avatars.githubusercontent.com/u/3957921?v=3","gravatar_id":"","url":"https://api.github.com/users/ahus1","html_url":"https://github.com/ahus1","followers_url":"https://api.github.com/users/ahus1/followers","following_url":"https://api.github.com/users/ahus1/following{/other_user}","gists_url":"https://api.github.com/users/ahus1/gists{/gist_id}","starred_url":"https://api.github.com/users/ahus1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahus1/subscriptions","organizations_url":"https://api.github.com/users/ahus1/orgs","repos_url":"https://api.github.com/users/ahus1/repos","events_url":"https://api.github.com/users/ahus1/events{/privacy}","received_events_url":"https://api.github.com/users/ahus1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TNG/JGiven/labels/core","name":"core","color":"5319e7"},{"url":"https://api.github.com/repos/TNG/JGiven/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-15T11:53:12Z","updated_at":"2015-07-15T21:39:43Z","closed_at":null,"body":"To advocate for JGiven in a larger project I would like to see hierarchies for test cases. \r\n\r\nThis could lead to a business motivated hierarchy like: \r\n\r\n    category1\\subcategory1\\usecase1\r\n    category1\\subcategory1\\usecase2\r\n    category1\\subcategory2\\usecase3\r\n    category2\\subcategory3\\usecase4\r\n    category2\\subcategory3\\usecase5\r\n\r\nOne source of a hierarchy could be java package names (in JGiven i.e. see all tests in the com.tngtech.jgiven.report package). But this allows only for one hierarchy in the project. \r\n\r\nAnother source could a category for tags. Some pseudo-code:\r\n\r\n    @IsTag( type = \"Usecase\", value = \"Usecase 1\",\r\n        description = \"...\", category = { \"category1\", \"subcategory1\" } )\r\n    @Retention( RetentionPolicy.RUNTIME )\r\n    public @interface Usecase1 {\r\n    \r\n    }\r\n\r\nAs we have a `TagDescriptionGenerator` it would be useful for me to have also a `TagCategoryGenerator` to allow for parameterized annotations like this\r\n\r\n    @Usecase(name = \"Usecase1\", category = { \"category1\", \"subcategory1\" })\r\n\r\nPlease comment if you find this useful as well.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/TNG/JGiven/issues/comments/121758290","html_url":"https://github.com/TNG/JGiven/issues/90#issuecomment-121758290","issue_url":"https://api.github.com/repos/TNG/JGiven/issues/90","id":121758290,"user":{"login":"ahus1","id":3957921,"avatar_url":"https://avatars.githubusercontent.com/u/3957921?v=3","gravatar_id":"","url":"https://api.github.com/users/ahus1","html_url":"https://github.com/ahus1","followers_url":"https://api.github.com/users/ahus1/followers","following_url":"https://api.github.com/users/ahus1/following{/other_user}","gists_url":"https://api.github.com/users/ahus1/gists{/gist_id}","starred_url":"https://api.github.com/users/ahus1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahus1/subscriptions","organizations_url":"https://api.github.com/users/ahus1/orgs","repos_url":"https://api.github.com/users/ahus1/repos","events_url":"https://api.github.com/users/ahus1/events{/privacy}","received_events_url":"https://api.github.com/users/ahus1/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T21:39:43Z","updated_at":"2015-07-15T21:39:43Z","body":"ok for me as long as multiple category levels are possible in the report."}}