{"action":"created","issue":{"url":"https://api.github.com/repos/junit-team/junit5/issues/1366","repository_url":"https://api.github.com/repos/junit-team/junit5","labels_url":"https://api.github.com/repos/junit-team/junit5/issues/1366/labels{/name}","comments_url":"https://api.github.com/repos/junit-team/junit5/issues/1366/comments","events_url":"https://api.github.com/repos/junit-team/junit5/issues/1366/events","html_url":"https://github.com/junit-team/junit5/issues/1366","id":313731823,"number":1366,"title":"Tag Expressions with spaces do not work with Surefire provider","user":{"login":"thecatwhisperer","id":3384718,"avatar_url":"https://avatars1.githubusercontent.com/u/3384718?v=4","gravatar_id":"","url":"https://api.github.com/users/thecatwhisperer","html_url":"https://github.com/thecatwhisperer","followers_url":"https://api.github.com/users/thecatwhisperer/followers","following_url":"https://api.github.com/users/thecatwhisperer/following{/other_user}","gists_url":"https://api.github.com/users/thecatwhisperer/gists{/gist_id}","starred_url":"https://api.github.com/users/thecatwhisperer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecatwhisperer/subscriptions","organizations_url":"https://api.github.com/users/thecatwhisperer/orgs","repos_url":"https://api.github.com/users/thecatwhisperer/repos","events_url":"https://api.github.com/users/thecatwhisperer/events{/privacy}","received_events_url":"https://api.github.com/users/thecatwhisperer/received_events","type":"User","site_admin":false},"labels":[{"id":508765159,"url":"https://api.github.com/repos/junit-team/junit5/labels/component:%20Surefire","name":"component: Surefire","color":"c2e0c6","default":false},{"id":294412858,"url":"https://api.github.com/repos/junit-team/junit5/labels/status:%20in%20progress","name":"status: in progress","color":"ffbb00","default":false},{"id":165165178,"url":"https://api.github.com/repos/junit-team/junit5/labels/type:%20bug","name":"type: bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":{"login":"sbrannen","id":104798,"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},"assignees":[{"login":"sbrannen","id":104798,"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}],"milestone":{"url":"https://api.github.com/repos/junit-team/junit5/milestones/22","html_url":"https://github.com/junit-team/junit5/milestone/22","labels_url":"https://api.github.com/repos/junit-team/junit5/milestones/22/labels","id":3141332,"number":22,"title":"5.2 M1","description":"","creator":{"login":"marcphilipp","id":214207,"avatar_url":"https://avatars2.githubusercontent.com/u/214207?v=4","gravatar_id":"","url":"https://api.github.com/users/marcphilipp","html_url":"https://github.com/marcphilipp","followers_url":"https://api.github.com/users/marcphilipp/followers","following_url":"https://api.github.com/users/marcphilipp/following{/other_user}","gists_url":"https://api.github.com/users/marcphilipp/gists{/gist_id}","starred_url":"https://api.github.com/users/marcphilipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcphilipp/subscriptions","organizations_url":"https://api.github.com/users/marcphilipp/orgs","repos_url":"https://api.github.com/users/marcphilipp/repos","events_url":"https://api.github.com/users/marcphilipp/events{/privacy}","received_events_url":"https://api.github.com/users/marcphilipp/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":27,"state":"open","created_at":"2018-02-25T09:11:28Z","updated_at":"2018-04-12T15:02:45Z","due_on":"2018-05-04T07:00:00Z","closed_at":null},"comments":12,"created_at":"2018-04-12T13:40:10Z","updated_at":"2018-04-12T15:15:48Z","closed_at":null,"author_association":"NONE","body":"## Overview\r\n- Tag Expression used in Maven POM cannot include spaces.\r\n- Tag Expression cannot use `|` (or) symbol, must use `,` (comma) for or instead\r\n\r\n## Versions\r\nJDK: \r\n```\r\njava version \"1.8.0_161\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_161-b12)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)\r\n```\r\nJunit Version: `5.1.1`\r\nSurefire version: `2.19.1` (2.21.0 fails with `ClassNotFoundException: org.apache.maven.plugin.surefire.log.api.ConsoleLogger`)\r\n\r\n\r\n## Examples\r\n\r\nGiven the following code:\r\n```java\r\npublic class TagExpressionTest {\r\n    @Test\r\n    @Tag(\"TagA\")\r\n    @DisplayName(\"Test with Tag A\")\r\n    public void testWithTagA() {\r\n        out.println(\"Test with Tag A\");\r\n    }\r\n\r\n    @Test\r\n    @Tag(\"TagB\")\r\n    @DisplayName(\"Test with Tag B\")\r\n    public void testWithTagB() {\r\n        out.println(\"Test with Tag B\");\r\n    }\r\n\r\n    @Test\r\n    @Tags({@Tag(\"TagA\"), @Tag(\"TagB\")})\r\n    @DisplayName(\"Test with Tag B\")\r\n    public void testWithTagsAandB() {\r\n        out.println(\"Test with Tags A & B\");\r\n    }\r\n}\r\n```\r\n\r\n### TagA & TagB\r\nThe following fails with `PreconditionViolationException: Unable to parse tag expression \"&\": missing lhs and rhs operand for '&' at index <0>`:\r\n```xml\r\n<includeTags>TagA &amp; TagB</includeTags>\r\n```\r\nhowever:\r\n```xml\r\n<includeTags>TagA&amp;TagB</includeTags>\r\n```\r\nis ok, runs only `testWithTagsAandB`\r\n\r\n### TagA or TagB\r\nThe following fails with `PreconditionViolationException: Unable to parse tag expression \"|\": missing lhs and rhs operand for '|' at index <0>`:\r\n```xml\r\n<includeTags>TagA | TagB</includeTags>\r\n```\r\nhowever:\r\n```xml\r\n<includeTags>TagA|TagB</includeTags>\r\n```\r\nis ok, runs `testWithTagA`, `testWithTagB` & `testWithTagsAandB`\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/junit-team/junit5/issues/comments/380841706","html_url":"https://github.com/junit-team/junit5/issues/1366#issuecomment-380841706","issue_url":"https://api.github.com/repos/junit-team/junit5/issues/1366","id":380841706,"user":{"login":"sbrannen","id":104798,"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":"2018-04-12T15:15:48Z","updated_at":"2018-04-12T15:15:48Z","author_association":"MEMBER","body":"_in progress_"}}
{"actor":{"display_login":"sbrannen"}}