A light sublime plugin that automatically creates MXUnit unit tests from a coldfusion component (cftags only - cfscript and fully scripted to come).
- Create Setup and Teardown methods
- Create unit test shells (user has to finish them) with the following: 1. Instance of ObjectToBeTested 2. Mocked components from the variables scope and all their respective methods. 3. Call to MethodToBeTested from ObjectToBeTested 4. Dummy assertion call
- Create "Missing Arguments" unit tests
- Create private method to get ObjectToBeTested
CFAutoMock can now be installed via Package Control https://sublime.wbond.net/installation
Sublime > Preferences > Package Control > Install Package > Type CFAutoMock > Install > Enjoy!
Open a CFC in Sublime 2 and press CTRL + K (win,linux) or Super + K (mac)