{"action":"created","issue":{"url":"https://api.github.com/repos/junit-team/junit5/issues/715","repository_url":"https://api.github.com/repos/junit-team/junit5","labels_url":"https://api.github.com/repos/junit-team/junit5/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/junit-team/junit5/issues/715/comments","events_url":"https://api.github.com/repos/junit-team/junit5/issues/715/events","html_url":"https://github.com/junit-team/junit5/issues/715","id":213033801,"node_id":"MDU6SXNzdWUyMTMwMzM4MDE=","number":715,"title":"Introduce migration support for JUnit 4's Parameterized Runner","user":{"login":"LiamClark","id":5991375,"node_id":"MDQ6VXNlcjU5OTEzNzU=","avatar_url":"https://avatars3.githubusercontent.com/u/5991375?v=4","gravatar_id":"","url":"https://api.github.com/users/LiamClark","html_url":"https://github.com/LiamClark","followers_url":"https://api.github.com/users/LiamClark/followers","following_url":"https://api.github.com/users/LiamClark/following{/other_user}","gists_url":"https://api.github.com/users/LiamClark/gists{/gist_id}","starred_url":"https://api.github.com/users/LiamClark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiamClark/subscriptions","organizations_url":"https://api.github.com/users/LiamClark/orgs","repos_url":"https://api.github.com/users/LiamClark/repos","events_url":"https://api.github.com/users/LiamClark/events{/privacy}","received_events_url":"https://api.github.com/users/LiamClark/received_events","type":"User","site_admin":false},"labels":[{"id":420911923,"node_id":"MDU6TGFiZWw0MjA5MTE5MjM=","url":"https://api.github.com/repos/junit-team/junit5/labels/component:%20Jupiter","name":"component: Jupiter","color":"11ee99","default":false},{"id":289029959,"node_id":"MDU6TGFiZWwyODkwMjk5NTk=","url":"https://api.github.com/repos/junit-team/junit5/labels/theme:%20extensions","name":"theme: extensions","color":"c7def8","default":false},{"id":293473932,"node_id":"MDU6TGFiZWwyOTM0NzM5MzI=","url":"https://api.github.com/repos/junit-team/junit5/labels/theme:%20programming%20model","name":"theme: programming model","color":"c7def8","default":false},{"id":165165180,"node_id":"MDU6TGFiZWwxNjUxNjUxODA=","url":"https://api.github.com/repos/junit-team/junit5/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/junit-team/junit5/milestones/5","html_url":"https://github.com/junit-team/junit5/milestone/5","labels_url":"https://api.github.com/repos/junit-team/junit5/milestones/5/labels","id":1885700,"node_id":"MDk6TWlsZXN0b25lMTg4NTcwMA==","number":5,"title":"General Backlog","description":"General backlog of issues that have been triaged but are not yet assigned to an actual release.","creator":{"login":"sbrannen","id":104798,"node_id":"MDQ6VXNlcjEwNDc5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/104798?v=4","gravatar_id":"","url":"https://api.github.com/users/sbrannen","html_url":"https://github.com/sbrannen","followers_url":"https://api.github.com/users/sbrannen/followers","following_url":"https://api.github.com/users/sbrannen/following{/other_user}","gists_url":"https://api.github.com/users/sbrannen/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrannen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrannen/subscriptions","organizations_url":"https://api.github.com/users/sbrannen/orgs","repos_url":"https://api.github.com/users/sbrannen/repos","events_url":"https://api.github.com/users/sbrannen/events{/privacy}","received_events_url":"https://api.github.com/users/sbrannen/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":0,"state":"open","created_at":"2016-07-15T14:11:47Z","updated_at":"2019-08-03T09:01:00Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-03-09T13:16:07Z","updated_at":"2019-09-05T14:01:30Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Overview\r\n\r\nIntroduce migration support for JUnit 4's `@RunWith(Parameterized.class)`.\r\n\r\n@marcphilipp mentioned through email that it would be nice to have an extension in `junit-jupiter-migration-support` that allows tests to be run that were originally written with JUnit 4 using the `Parameterized` runner. \r\n\r\nWhat this would look like:\r\n\r\n```java\r\nimport static org.junit.Assert.assertEquals;\r\n\r\nimport java.util.Arrays;\r\nimport java.util.Collection;\r\nimport org.junit.jupiter.api.TestTemplate;\r\nimport org.junit.jupiter.api.extension.ExtendWith;\r\nimport org.junit.jupiter.migrationsupport.extensions.Parameterized;\r\nimport org.junit.runners.Parameterized.Parameters;\r\n\r\n@ExtendWith(ParameterizedExtension.class)\r\npublic class FibonacciTest {\r\n\r\n    @Parameters\r\n    public static Collection<Object[]> data() {\r\n        return Arrays.asList(new Object[][] {     \r\n                 { 0, 0 }, { 1, 1 }, { 2, 1 }, { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 }  \r\n           });\r\n    }\r\n\r\n    private int input;\r\n\r\n    private int expected;\r\n\r\n    public FibonacciTest(int input, int expected) {\r\n        this.input= input;\r\n        this.expected= expected;\r\n    }\r\n\r\n    @TestTemplate\r\n    public void test() {\r\n        assertEquals(expected, Fibonacci.compute(input));\r\n    }\r\n}\r\n```\r\n\r\n```java\r\npublic class Fibonacci {\r\n    public static int compute(int n) {\r\n    \tint result = 0;\r\n    \t\r\n        if (n <= 1) { \r\n        \tresult = n; \r\n        } else { \r\n        \tresult = compute(n - 1) + compute(n - 2); \r\n        }\r\n        \r\n        return result;\r\n    }\r\n}\r\n```\r\n\r\nIf everybody agrees this is a good idea, I would like to tackle this issue.\r\n\r\n## Deliverables\r\n\r\n- [ ] Introduce `ParameterizedExtension` extension in `junit-jupiter-migration-support`.\r\n- [ ] An updated section in the user guide.\r\n- [ ] Document in release notes.\r\n"},"comment":{"url":"https://api.github.com/repos/junit-team/junit5/issues/comments/528379205","html_url":"https://github.com/junit-team/junit5/issues/715#issuecomment-528379205","issue_url":"https://api.github.com/repos/junit-team/junit5/issues/715","id":528379205,"node_id":"MDEyOklzc3VlQ29tbWVudDUyODM3OTIwNQ==","user":{"login":"sbrannen","id":104798,"node_id":"MDQ6VXNlcjEwNDc5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/104798?v=4","gravatar_id":"","url":"https://api.github.com/users/sbrannen","html_url":"https://github.com/sbrannen","followers_url":"https://api.github.com/users/sbrannen/followers","following_url":"https://api.github.com/users/sbrannen/following{/other_user}","gists_url":"https://api.github.com/users/sbrannen/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrannen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrannen/subscriptions","organizations_url":"https://api.github.com/users/sbrannen/orgs","repos_url":"https://api.github.com/users/sbrannen/repos","events_url":"https://api.github.com/users/sbrannen/events{/privacy}","received_events_url":"https://api.github.com/users/sbrannen/received_events","type":"User","site_admin":false},"created_at":"2019-09-05T14:01:30Z","updated_at":"2019-09-05T14:01:30Z","author_association":"MEMBER","body":"@TatyanaSnigiriova, the `ParameterizedExtension` was never released.\r\n\r\nHowever, you can view the (now closed) work in progress in PR #723."}}
{"actor":{"display_login":"sbrannen"}}