Simpletest is a development tool, not a site building tool. And we have schema and devel modules (possibly others, no offense to them) in core. To reduce confusion for new users who install Drupal 7 and enable SimpleTest, and to reduce potential naming conflicts if development modules add their own top level items (I think schema adds a 'database' package name now), let's add a new top level item.

I'll look a bit empty if only simpletest is enabled, but hopefully the number of sites running simpletest in production will be 0, and the number of sites running simpletest without also having devel installed should be 0 as well.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stella’s picture

+1 for this

Then the new merged coder + deadwood module could live here too.

catch’s picture

Status: Active » Needs review
FileSize
60.94 KB
2.23 KB
3.27 KB

webchick mentioned in irc that we don't currently have a good way for optional modules to all use the same top-level menu item, however I just added the same entry to both simpletest and devel, and it works fine (I think the menu system just overwrites in the menu_router table).

So here's a patch - one for HEAD, just to move simpletest out of site building, and one for devel generate to prove it works like this.

NB, this will break tests - it's mainly so people can see how it looks.

Status: Needs review » Needs work

The last submitted patch failed testing.

catch’s picture

Status: Needs work » Needs review
FileSize
4.44 KB

Proper patch with conversion of all paths (unless there's some references outside simpletest.module)

dmitrig01’s picture

There sholud be some better solution - we shouldn't have to make all modules that define things under admin/content have to define admin/content and so on and so forth for the other paths.

sun’s picture

Status: Needs review » Needs work

I agree with dmitrig01. Panels 2 - and modules integrating with Panels - suffered from this lack. We (really) do not want each and every module to register and define the same top-level menu item all over again.

We need a new layer (or menu item type) in the menu system that allows to wrap sub-items, or in other words, categorize menu trees.

Dries’s picture

#5 and #6 are valid but requires its own issue/patch -- it is a separate but related discussion.

catch’s picture

Status: Needs work » Needs review

Yep, the IA the the admin screen and the limitations of how to put items into it are separate discussions.

Dries’s picture

Status: Needs review » Fixed

I think it is actually a feature that it is somewhat hard to create a new top-level menu item. If it were easy, we'd have 25 of them by now. ;)

I've committed this patch to CVS HEAD. Let's create a new issue to discuss menu system improvements.

The easiest solution is probably for other modules to create a dependency on SimpleTest. That could be a smart thing in our quest to get more people to write and run tests.

Status: Fixed » Closed (fixed)

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