I am trying to run a unit test for one of my contributed modules in my local development environment. But it keeps throwing an error:
$:/path/to/web$ sudo -u www-data -E phpunit -c core/phpunit.xml profiles/abc/modules/contrib/entity_clone/tests/src/Functional/EntityCloneContentTest.php
PHPUnit 6.5.9 by Sebastian Bergmann and contributors.
Testing Drupal\Tests\entity_clone\Functional\EntityCloneContentTest
F 1 / 1 (100%)
Time: 8.49 seconds, Memory: 4.00MB
There was 1 failure:
1) Drupal\Tests\entity_clone\Functional\EntityCloneContentTest::testContentEntityClone
Unable to install modules entity_clone, block, node, datetime due to missing modules entity_clone.
/path/to/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:481
/path/to/web/core/tests/Drupal/Tests/BrowserTestBase.php:578
/path/to/web/core/tests/Drupal/Tests/BrowserTestBase.php:406
/path/to/web/core/modules/node/tests/src/Functional/NodeTestBase.php:33
/path/to/web/profiles/abc/modules/contrib/entity_clone/tests/src/Functional/EntityCloneContentTest.php:50
FAILURES!
Tests: 1, Assertions: 1, Failures: 1.
Any idea what is wrong here? I have tried with a few other modules also, same error.
Do I have to do anything additional to add my profiles in the phpunit.xml?
BR/Pratip