Setup test module not available to enable

Created on 14 June 2024, 11 months ago
Updated 26 June 2024, 10 months ago

Problem/Motivation

I see/hear about the setup test module, mercury_editor_setup_test, in many videos about Mercury Editor (including this 2024 Stanford WebCamp recording from just a few weeks ago) -- but, it isn't actually available to enable, in the Drupal UI (/admin/modules), or via command line (drush en mercury_editor_setup_test).

As far as I can tell, this sub-module (mercury_editor_setup_test) is in mercury_editor/tests/modules -- so, I definitely don't know for sure, but I imagine this location of the sub-module is why I can't enable it? Probably just needs to be moved to mercury_editor/modules?

Steps to reproduce

Add Mercury editor to your project, i.e. composer require drupal/mercury_editor
In Drupal UI ("Extend"), look for the "Mercury Editor Setup Test" module (I have Module Filter, so I just searched for "mercury")
In a terminal, try to enable mercury_editor_setup_test with drush.

Attached screenshots:
Looking for "Mercury Editor Setup Test" module in Drupal UI (on a site with Module Filter).
Trying to enable (and then trying to find) mercury_editor_setup_test module via command line.

Proposed resolution

Move the sub-module to mercury_editor/modules??

I did this locally (i.e. mv web/modules/contrib/mercury_editor/tests/modules/mercury_editor_setup_test/ web/modules/contrib/mercury_editor/modules/), and after doing that, I was able to enable the module just fine.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

2.1

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States alison

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @alison
  • πŸ‡ΊπŸ‡ΈUnited States alison

    If there's maintainer support for moving this module into mercury_editor/modules, I can submit a MR!

  • Status changed to Closed: works as designed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States justin2pin

    Hi @alison - to enable test modules, add (or uncomment) this line in your local settings file (i.e. settings.local.php):

    $settings['extension_discovery_scan_tests'] = TRUE;

    Let me know if you still run into issues!

  • πŸ‡ΊπŸ‡ΈUnited States alison

    Oh! Even though it says "test" in the name, it had not occurred to me that this module was meant for testing the module, like for automated tests / debugging -- I thought the intent of this module was more like a demo/example module. I suppose then it would be called Mercury Editor Setup Demo or Mercury Editor Setup Example...

    Obviously I'm biased because I didn't know about using test modules like this (to try the module with a demo/starter-setup, not just for automated testing), but, if y'all are going to use this module in how-to presentations, I recommend including an explanation of how to enable the module, or point to documentation about how to enable test modules -- again, I'm biased, but I don't think it's common knowledge among site builders who aren't also contributed module developers.

    That said, I get it now, thank you!

Production build 0.71.5 2024