{"action":"created","issue":{"url":"https://api.github.com/repos/spockframework/spock/issues/24","labels_url":"https://api.github.com/repos/spockframework/spock/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/spockframework/spock/issues/24/comments","events_url":"https://api.github.com/repos/spockframework/spock/issues/24/events","html_url":"https://github.com/spockframework/spock/pull/24","id":23114459,"number":24,"title":"SpockConfig can include/exclude by regex pattern string.","user":{"login":"jdbeutel","id":196063,"avatar_url":"https://avatars.githubusercontent.com/u/196063?v=3","gravatar_id":"","url":"https://api.github.com/users/jdbeutel","html_url":"https://github.com/jdbeutel","followers_url":"https://api.github.com/users/jdbeutel/followers","following_url":"https://api.github.com/users/jdbeutel/following{/other_user}","gists_url":"https://api.github.com/users/jdbeutel/gists{/gist_id}","starred_url":"https://api.github.com/users/jdbeutel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdbeutel/subscriptions","organizations_url":"https://api.github.com/users/jdbeutel/orgs","repos_url":"https://api.github.com/users/jdbeutel/repos","events_url":"https://api.github.com/users/jdbeutel/events{/privacy}","received_events_url":"https://api.github.com/users/jdbeutel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2013-11-22T02:45:24Z","updated_at":"2015-06-23T21:16:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spockframework/spock/pulls/24","html_url":"https://github.com/spockframework/spock/pull/24","diff_url":"https://github.com/spockframework/spock/pull/24.diff","patch_url":"https://github.com/spockframework/spock/pull/24.patch"},"body":"Please consider adding this to Spock.  You [mentioned](https://groups.google.com/d/msg/spockframework/DQFTj9dXD2Y/HPJqTISBiocJ) that it would be good to do.\r\n\r\nThe regex pattern is matched against the simple name\r\nof the annotation, spec, or feature.  This addresses\r\nhttp://code.google.com/p/spock/issues/detail?id=184\r\n\r\nAlso added to new_and_noteworthy, and updated javadoc in \r\nIncludeExcludeExtension and RunnerConfiguration.  Removed an apparently \r\nobsolete part of the example from the latter, because it didn't work \r\nwhen I tried it, and there are no specs for it.\r\n\r\nI would have liked to use GrailsTestTargetPattern with its AntPathMatcher,\r\nbut that seemed out of scope for Spock."},"comment":{"url":"https://api.github.com/repos/spockframework/spock/issues/comments/114643837","html_url":"https://github.com/spockframework/spock/pull/24#issuecomment-114643837","issue_url":"https://api.github.com/repos/spockframework/spock/issues/24","id":114643837,"user":{"login":"leonard84","id":1151511,"avatar_url":"https://avatars.githubusercontent.com/u/1151511?v=3","gravatar_id":"","url":"https://api.github.com/users/leonard84","html_url":"https://github.com/leonard84","followers_url":"https://api.github.com/users/leonard84/followers","following_url":"https://api.github.com/users/leonard84/following{/other_user}","gists_url":"https://api.github.com/users/leonard84/gists{/gist_id}","starred_url":"https://api.github.com/users/leonard84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonard84/subscriptions","organizations_url":"https://api.github.com/users/leonard84/orgs","repos_url":"https://api.github.com/users/leonard84/repos","events_url":"https://api.github.com/users/leonard84/events{/privacy}","received_events_url":"https://api.github.com/users/leonard84/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T21:16:27Z","updated_at":"2015-06-23T21:16:27Z","body":"As I said before we have three types of matchers:\r\n\r\n1. Class Object: `Fast`\r\n2. String which is FQCN of the classes only, no regex matching: `'my.package.IntegrationTest'`\r\n3. Pattern Instance which is only matched against the Feature names. Pattern literal syntax in groovy is `~/regex/`, e.g., `~/.*Spec/`\r\n\r\nThe classloader should have access to the class in the `IncludeExcludeExtension` how else could you check it? You can also use `Class.forName(fqcn, false,  classloader )` to use another classloader, but I doubt it would be necessary.."}}