Xcode TDD workflow - how to “fix it quickly” when using red-green-refactor?

One of the things that makes TDD enjoyable is the ability to generate code after you write the test. This is done with the Quick Fix option in Eclipse (Cmd-F1) - or with a similar option using Alt-Enter in Jetbrains tools. Most uses include only four options:

  • Create new class
  • Create a new method
  • Create a new property
  • Create a new instance variable

Is there a way to add this ability to Xcode using a plugin, Automator, or something else? I feel that with four of them in place, I could go back to using Xcode instead of getting stuck in Appcode.

+4
source share
2 answers

Unfortunately, I do not think this is possible. Xcode refactoring tools are not as strong as some other IDEs (although they have recently been improved). And extending Xcode with plugins or scripts is even more complicated from the moment you upgrade to 4.0 (before that, at least scripts were possible). Now even Apple Script support will not be as complete as it should be.

0
source

I came across the same need, but unfortunately the current xCode versions do not have much support for code refactoring. One tool I stumbled upon is Accessorizer

I have not tried it, but the features and recommendations look promising.

Hope that helps :)

0
source

All Articles