Closed (fixed)
Project:
Module Builder
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2010 at 19:19 UTC
Updated:
28 Jul 2013 at 07:21 UTC
It would be cool if there would be an option which adds
* a modulename.test file
* add a modulename_test.info modulename_test.module modulename_test.install
Comments
Comment #1
joachim commentedNone of those are hooks, are they?
We already have two separate systems for module code and for info files, so adding a third for code for a test file should be doable.
Comment #2
joachim commentedI've started work on #1054652: convert generation code to OO, which should provide the means for this to happen more easily.
Comment #3
joachim commentedI've reworked the generating system (#1945030: generalize to components other than hooks) and so this should now be doable quite easily.
Comment #4
joachim commented* a modulename.test file
I've just added a generator for this!
Just specify 'tests' in the --build option.
* add a modulename_test.info modulename_test.module modulename_test.install
For that, just run module builder a second time, specifying the location to write the module with --parent.