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

laurencefass created an issue. See original summary.

Syntapse’s picture

Title: The testing framework requires the PHPUnit package. » module enable error: The testing framework requires the PHPUnit package
ioana apetri’s picture

By 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).

Syntapse’s picture

Priority: Normal » Major
Issue summary: View changes
cilefen’s picture

Category: Bug report » Support request
Priority: Major » Normal
Issue tags: +Needs issue summary update

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

cilefen’s picture

Title: module enable error: The testing framework requires the PHPUnit package » simpletest module enable error: The testing framework requires the PHPUnit package; phpunit installation status is unclear
Component: other » simpletest.module

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

GhostInTheMachines’s picture

Enabled 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)
Only local images are allowed.

GhostInTheMachines’s picture

GhostInTheMachines’s picture

GhostInTheMachines’s picture

cilefen’s picture

Status: Active » Fixed

There was no reply.

Status: Fixed » Closed (fixed)

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