alairock / phpunit-atom

PHPUnit test runner for atom editor
MIT License
12 stars 9 forks source link

Generate test files with functions #13

Open Trudko opened 9 years ago

Trudko commented 9 years ago

Hi, how about to add command which would create test file for given class?

Package already have path to test folder so it would need to:

  1. Get Name and Path to class
  2. Create file in same namespace under the test directory
  3. Maybe get function from class and create test method for each function. I am not sure if this would help given that you don't want to test every method. Package might show list of all function in List view and user could choose for which functions should test method be created.

Do you think such a functionality may be beneficial for your package?

edno commented 9 years ago

That would be a PHPUnit test skeleton generator. I'll have a look on it after the next release.