The files attached are automator actions. Just copy it to your ~/Library/Services folder and it will be available in Xcode as a service.
They all work the same way. Select a single word or a bunch of property definition lines. Right click and select the service you need. If you select a line the automator action automatically skips all lines where a certain key (e.g. UIButton, UIBarButton) couldn’t be found. The generated test are copied to the clipboard.
You can easily generate new services by editing the apple script included in the automator action. Follow the guidelines at the beginning of each script and you save a lot of time.
The included test are good for
- The property has a delegate which must be connect to the system under test
- The property is a UIBarButtonItem with an action connected. Note that you have to fill in the action method!
- The property is an IBOutlet which should be connected
- The property is a UIButton with an action connected. Note that you have to fill in the action method!