{"action":"closed","issue":{"url":"https://api.github.com/repos/pester/Pester/issues/309","labels_url":"https://api.github.com/repos/pester/Pester/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/pester/Pester/issues/309/comments","events_url":"https://api.github.com/repos/pester/Pester/issues/309/events","html_url":"https://github.com/pester/Pester/issues/309","id":68957783,"number":309,"title":"Invoke-Pester runs no tests when an array of TestNames is provided","user":{"login":"alx9r","id":11237922,"avatar_url":"https://avatars.githubusercontent.com/u/11237922?v=3","gravatar_id":"","url":"https://api.github.com/users/alx9r","html_url":"https://github.com/alx9r","followers_url":"https://api.github.com/users/alx9r/followers","following_url":"https://api.github.com/users/alx9r/following{/other_user}","gists_url":"https://api.github.com/users/alx9r/gists{/gist_id}","starred_url":"https://api.github.com/users/alx9r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alx9r/subscriptions","organizations_url":"https://api.github.com/users/alx9r/orgs","repos_url":"https://api.github.com/users/alx9r/repos","events_url":"https://api.github.com/users/alx9r/events{/privacy}","received_events_url":"https://api.github.com/users/alx9r/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"dlwyatt","id":5107604,"avatar_url":"https://avatars.githubusercontent.com/u/5107604?v=3","gravatar_id":"","url":"https://api.github.com/users/dlwyatt","html_url":"https://github.com/dlwyatt","followers_url":"https://api.github.com/users/dlwyatt/followers","following_url":"https://api.github.com/users/dlwyatt/following{/other_user}","gists_url":"https://api.github.com/users/dlwyatt/gists{/gist_id}","starred_url":"https://api.github.com/users/dlwyatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlwyatt/subscriptions","organizations_url":"https://api.github.com/users/dlwyatt/orgs","repos_url":"https://api.github.com/users/dlwyatt/repos","events_url":"https://api.github.com/users/dlwyatt/events{/privacy}","received_events_url":"https://api.github.com/users/dlwyatt/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-16T16:14:22Z","updated_at":"2015-04-16T16:35:54Z","closed_at":"2015-04-16T16:35:54Z","body":"`Invoke-Pester` has a parameter named `TestNames` with the following description:\r\n```\r\n-TestName <String[]>\r\n    Informs Invoke-Pester to only run Describe blocks that match this name.\r\n    \r\n    Required?                    false\r\n    Position?                    2\r\n    Default value                \r\n    Accept pipeline input?       false\r\n    Accept wildcard characters?  false\r\n```\r\n\r\nThe help text doesn't really imply that multiple test names can be provided.  However, the parameter type is an array of strings which suggests that multiple test name ought to be handled correctly.  \r\n\r\nWhether or not multiple test names should be allowed, the current behavior is rather surprising: Providing an array of names to `TestNames` result in no tests running.\r\n\r\n### mytests.Tests.ps1\r\n```Powershell\r\nDescribe 'test 1' {\r\n    It 'passes' { $true | Should be $true }\r\n}\r\nDescribe 'test 2' {\r\n    It 'passes' { $true | Should be $true }\r\n}\r\n```\r\n### Invocation 1 (as expected)\r\nRunning `Invoke-Pester -TestName 'test1'` yields\r\n```\r\nDescribing test 1\r\n [+] passes 52ms\r\nTests completed in 52ms\r\nPassed: 1 Failed: 0 Skipped: 0 Pending: 0\r\n```\r\n\r\n### Invocation 2 (no tests run)\r\nRunning `Invoke-Pester -TestName 'test1','test2'` yields \r\n```\r\nTests completed in 0ms\r\nPassed: 0 Failed: 0 Skipped: 0 Pending: 0\r\n```\r\n"}}