Allow creation of test case
As a developer, I'd like to be able to create a test case file from the current class I'm working on, so that I don't have to create the file manually.
Example:
If im working on application/models/fancy/FancyModel.php
I'd like to right click and select "Create test Case"
that will generate the file application/test/models/fancy/FancyModelTest.php
and open it in the editor
Working out where to save the file is a hard problem, as different PHP projects have different conventions on where to save the corresponding test file.
But what we can do is copy the output from the skeleton generator into a new buffer in ST2, and just let the user save the file. That shouldn't be too hard to do.
I'll add support both for generating the test skeleton and going the other way - generating the class from the test code.
:+1:
I'll add support both for generating the test skeleton and going the other way - generating the class from the test code.
It'll be great!