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

joachim’s picture

None 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.

joachim’s picture

I've started work on #1054652: convert generation code to OO, which should provide the means for this to happen more easily.

joachim’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev

I've reworked the generating system (#1945030: generalize to components other than hooks) and so this should now be doable quite easily.

joachim’s picture

Status: Active » Fixed

* 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.