Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Allow creation of test case #16

Open
Asgaroth opened this issue Nov 24, 2012 · 2 comments
Open

Allow creation of test case #16

Asgaroth opened this issue Nov 24, 2012 · 2 comments

Comments

@Asgaroth
Copy link

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

@stuartherbert
Copy link
Owner

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.

@hkdobrev
Copy link

👍

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants