Open madjam002 opened 10 years ago
It would be cool if the framework automatically generate test skeletons for every class Eg..
class A{
public function method1(){
// Code..
}
public function method2(){
// Code..
}
}
.. could generate
class ATestCase{
public function testMethod1(){
// TODO Describes..
}
public function testMethod2(){
// TODO Describes..
}
}
Yeah that was what I had in mind. It would also be cool if the skeleton generator was built into the IDE plugins.
You could even hook into Git somehow to generate Test class skeletons for newly added class files. Here's an example pseudo-strategy that you could implement:
if on-commit new files are added
search then new files for 'class' definitions
if class definition found
prompt user to generate test skeletons
Simple classes which contain properties can easily have tests generated for them to save time.