{"action":"created","issue":{"url":"https://api.github.com/repos/msgilligan/bitcoinj-addons/issues/6","labels_url":"https://api.github.com/repos/msgilligan/bitcoinj-addons/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/msgilligan/bitcoinj-addons/issues/6/comments","events_url":"https://api.github.com/repos/msgilligan/bitcoinj-addons/issues/6/events","html_url":"https://github.com/msgilligan/bitcoinj-addons/issues/6","id":106256344,"number":6,"title":"Use annotations to mark test Specs and/or features as @RegTest or not.","user":{"login":"msgilligan","id":61612,"avatar_url":"https://avatars.githubusercontent.com/u/61612?v=3","gravatar_id":"","url":"https://api.github.com/users/msgilligan","html_url":"https://github.com/msgilligan","followers_url":"https://api.github.com/users/msgilligan/followers","following_url":"https://api.github.com/users/msgilligan/following{/other_user}","gists_url":"https://api.github.com/users/msgilligan/gists{/gist_id}","starred_url":"https://api.github.com/users/msgilligan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msgilligan/subscriptions","organizations_url":"https://api.github.com/users/msgilligan/orgs","repos_url":"https://api.github.com/users/msgilligan/repos","events_url":"https://api.github.com/users/msgilligan/events{/privacy}","received_events_url":"https://api.github.com/users/msgilligan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-14T01:40:37Z","updated_at":"2015-09-21T11:00:34Z","closed_at":null,"body":"Using annotations and an external Spock configuration file, we should be able to mark test Specs or feature tests as requiring RegTest mode or not.\r\n\r\nA test that has a `@RegTest` annotation would only run if the current functional/integration test configuration was running against a server in RegTest mode.\r\n\r\nSee [Spocklight: Including or Excluding Specifications Based On Annotations](http://mrhaki.blogspot.fr/2015/08/spocklight-including-or-excluding.html) by @mrhaki.\r\n\r\nSo for example, the entire class [BitcoinStepwiseSpec](https://github.com/msgilligan/bitcoinj-addons/blob/master/bitcoinj-rpcclient/src/integ/groovy/com/msgilligan/bitcoinj/rpc/BitcoinStepwiseSpec.groovy) would have a `@RegTest` annotation. Whereas, [BitcoinSpec](https://github.com/msgilligan/bitcoinj-addons/blob/master/bitcoinj-rpcclient/src/integ/groovy/com/msgilligan/bitcoinj/rpc/BitcoinSpec.groovy) would only user `@RegTest` on feature test methods that used `generateBlock()`.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/msgilligan/bitcoinj-addons/issues/comments/141941326","html_url":"https://github.com/msgilligan/bitcoinj-addons/issues/6#issuecomment-141941326","issue_url":"https://api.github.com/repos/msgilligan/bitcoinj-addons/issues/6","id":141941326,"user":{"login":"mrhaki","id":157000,"avatar_url":"https://avatars.githubusercontent.com/u/157000?v=3","gravatar_id":"","url":"https://api.github.com/users/mrhaki","html_url":"https://github.com/mrhaki","followers_url":"https://api.github.com/users/mrhaki/followers","following_url":"https://api.github.com/users/mrhaki/following{/other_user}","gists_url":"https://api.github.com/users/mrhaki/gists{/gist_id}","starred_url":"https://api.github.com/users/mrhaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrhaki/subscriptions","organizations_url":"https://api.github.com/users/mrhaki/orgs","repos_url":"https://api.github.com/users/mrhaki/repos","events_url":"https://api.github.com/users/mrhaki/events{/privacy}","received_events_url":"https://api.github.com/users/mrhaki/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T11:00:34Z","updated_at":"2015-09-21T11:00:34Z","body":"If the method commandExists is a static method it should work in they way you described it."}}