i've installed a new drupal site and i can't enable simpletest.
error message
The testing framework requires the PHPUnit package. Please run 'composer install --dev' to ensure it is present. (Currently using PHPUnit dependency version Not found)
composer install --dev results in no action.
drupal-8.4.x$ sudo composer install --dev
[sudo] password for patterns:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
You are using the deprecated option "dev". Dev packages are installed by default now.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
Removing packages services cache file:
/home/patterns/public_html/drupal-8.4.x/vendor/drupal/console/extend.console.uninstall.services.yml
Creating packages services cache file:
/home/patterns/public_html/drupal-8.4.x/vendor/drupal/console/extend.console.uninstall.services.yml
Comments
Comment #2
Syntapse CreditAttribution: Syntapse commentedComment #3
ioana apetri CreditAttribution: ioana apetri at OPTASY commentedBy using the "composer update --dev" I received the same message including "You are using the deprecated option "dev". Dev packages are installed by default now." message, but I have some updates on my side.(3 installs, 40 updates, 1 removal).
Comment #4
Syntapse CreditAttribution: Syntapse commentedComment #5
cilefen CreditAttribution: cilefen at Institute for Advanced Study commentedPlease share the composer.json file from this site. Could you add a few words about why composer was executed as root as shown in the issue summary?
Passing --dev to composer will result in that warning, however composer should continue to execute. Definitely open an issue about the "The testing framework requires the PHPUnit package..." message specifying --dev when it should not, if no such issue exists, because the message is not helpful.
Comment #6
cilefen CreditAttribution: cilefen at Institute for Advanced Study commentedComment #8
GhostInTheMachines CreditAttribution: GhostInTheMachines as a volunteer commentedEnabled this module on a fresh D8.6 install using the following steps with no errors
Cloned down Drupal 8.6x
Initialized using a local development environment.
Installed using Composer.
Logged into administration backend.
Opened the Extend tab
Searched for simpletest
Enabled test without errors. (See screenshot)
Comment #9
GhostInTheMachines CreditAttribution: GhostInTheMachines as a volunteer commentedComment #10
GhostInTheMachines CreditAttribution: GhostInTheMachines as a volunteer commentedComment #11
GhostInTheMachines CreditAttribution: GhostInTheMachines as a volunteer commentedComment #12
cilefen CreditAttribution: cilefen at Institute for Advanced Study commentedThere was no reply.