{"action":"created","issue":{"url":"https://api.github.com/repos/pester/Pester/issues/832","repository_url":"https://api.github.com/repos/pester/Pester","labels_url":"https://api.github.com/repos/pester/Pester/issues/832/labels{/name}","comments_url":"https://api.github.com/repos/pester/Pester/issues/832/comments","events_url":"https://api.github.com/repos/pester/Pester/issues/832/events","html_url":"https://github.com/pester/Pester/issues/832","id":252629075,"number":832,"title":"Feature request: Parameterized Context blocks ","user":{"login":"Remco-74","id":13039380,"avatar_url":"https://avatars0.githubusercontent.com/u/13039380?v=4","gravatar_id":"","url":"https://api.github.com/users/Remco-74","html_url":"https://github.com/Remco-74","followers_url":"https://api.github.com/users/Remco-74/followers","following_url":"https://api.github.com/users/Remco-74/following{/other_user}","gists_url":"https://api.github.com/users/Remco-74/gists{/gist_id}","starred_url":"https://api.github.com/users/Remco-74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Remco-74/subscriptions","organizations_url":"https://api.github.com/users/Remco-74/orgs","repos_url":"https://api.github.com/users/Remco-74/repos","events_url":"https://api.github.com/users/Remco-74/events{/privacy}","received_events_url":"https://api.github.com/users/Remco-74/received_events","type":"User","site_admin":false},"labels":[{"id":201863597,"url":"https://api.github.com/repos/pester/Pester/labels/Feature","name":"Feature","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-24T14:55:33Z","updated_at":"2018-03-26T14:12:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I would like to be able to repeat groups of tests (context blocks) against multiple items (systems, endpoints, etc..), so that my test results are grouped by item.\r\n\r\nfor example:\r\n\r\n    Describe 'Parameterized Context Example' {\r\n\r\n        $endpoints = @(\r\n            @{ HostName = 'server-1' }\r\n            @{ HostName = 'server-2' }\r\n        )\r\n\r\n        Context 'Network verification for <HostName>' -TestCases $endPoints {\r\n            param($HostName)\r\n\r\n            It 'can be reached' {\r\n                Test-Connection $HostName | Should Be True\r\n            }\r\n\r\n            ....\r\n        }\r\n    }\r\n\r\n- This would help with environment verification tests. \r\n- It would also help to change the execution sequence of tests (series of tests per system, instead of every test against every system).\r\n- It would also help with grouping test results per system."},"comment":{"url":"https://api.github.com/repos/pester/Pester/issues/comments/376179880","html_url":"https://github.com/pester/Pester/issues/832#issuecomment-376179880","issue_url":"https://api.github.com/repos/pester/Pester/issues/832","id":376179880,"user":{"login":"jakauppila","id":4100127,"avatar_url":"https://avatars0.githubusercontent.com/u/4100127?v=4","gravatar_id":"","url":"https://api.github.com/users/jakauppila","html_url":"https://github.com/jakauppila","followers_url":"https://api.github.com/users/jakauppila/followers","following_url":"https://api.github.com/users/jakauppila/following{/other_user}","gists_url":"https://api.github.com/users/jakauppila/gists{/gist_id}","starred_url":"https://api.github.com/users/jakauppila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakauppila/subscriptions","organizations_url":"https://api.github.com/users/jakauppila/orgs","repos_url":"https://api.github.com/users/jakauppila/repos","events_url":"https://api.github.com/users/jakauppila/events{/privacy}","received_events_url":"https://api.github.com/users/jakauppila/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T14:12:12Z","updated_at":"2018-03-26T14:12:12Z","author_association":"NONE","body":"+1 to this. It would be great to be able to pass TestCases to a context when writing more data-driven tests."}}
{"actor":{"display_login":"jakauppila"}}