You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run PHPUnit testing with lando on a new local Quickstart build as indicated in the How to contribute document, the command results in fatal errors and the tests are not completed.
Describe the bug
When running the lando phpunit or lando phpunit-fastest commands, the XML configuration file (phpunit.xml.dist) cannot be located, resulting in multiple errors like the one below:
1) Drupal\Tests\az_cas\Functional\AzCasAdminSettingsTest::testUserLoginFormBehavior with data set #0 (false)
PHPUnit\Framework\Exception: PHP Fatal error: Uncaught PHPUnit\Util\Xml\Exception: Could not read "web/profiles/custom/az_quickstart/phpunit.xml.dist". in /app/vendor/phpunit/phpunit/src/Util/Xml/Loader.php:38
Stack trace:
#0 /app/vendor/phpunit/phpunit/src/TextUI/XmlConfiguration/Loader.php(72): PHPUnit\Util\Xml\Loader->loadFile('web/profiles/cu...', false, true, true)
#1 Standard input code(101): PHPUnit\TextUI\XmlConfiguration\Loader->load('web/profiles/cu...')
#2 {main}
Next PHPUnit\TextUI\XmlConfiguration\Exception: Could not read "web/profiles/custom/az_quickstart/phpunit.xml.dist". in /app/vendor/phpunit/phpunit/src/TextUI/XmlConfiguration/Loader.php:74
Stack trace:
#0 Standard input code(101): PHPUnit\TextUI\XmlConfiguration\Loader->load('web/profiles/cu...')
#1 {main}
thrown in /app/vendor/phpunit/phpunit/src/TextUI/XmlConfiguration/Loader.php on line 74
Fatal error: Uncaught PHPUnit\Util\Xml\Exception: Could not read "web/profiles/custom/az_quickstart/phpunit.xml.dist". in /app/vendor/phpunit/phpunit/src/Util/Xml/Loader.php:38
Stack trace:
#0 /app/vendor/phpunit/phpunit/src/TextUI/XmlConfiguration/Loader.php(72): PHPUnit\Util\Xml\Loader->loadFile('web/profiles/cu...', false, true, true)
#1 Standard input code(101): PHPUnit\TextUI\XmlConfiguration\Loader->load('web/profiles/cu...')
#2 {main}
Next PHPUnit\TextUI\XmlConfiguration\Exception: Could not read "web/profiles/custom/az_quickstart/phpunit.xml.dist". in /app/vendor/phpunit/phpunit/src/TextUI/XmlConfiguration/Loader.php:74
Stack trace:
#0 Standard input code(101): PHPUnit\TextUI\XmlConfiguration\Loader->load('web/profiles/cu...')
#1 {main}
thrown in /app/vendor/phpunit/phpunit/src/TextUI/XmlConfiguration/Loader.php on line 74
/app/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/app/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/app/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/app/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
/app/vendor/phpunit/phpunit/src/TextUI/Command.php:146
/app/vendor/phpunit/phpunit/src/TextUI/Command.php:99
To Reproduce
Steps to reproduce the behavior:
Clone a local copy of Quickstart
Run lando start
Run lando phpunit or lando phpunit-fastest
Observe the fatal errors
Proposed resolution
Update references to the phpunit.xml.dist file path in .lando.yml so that the PHPUnit testing can run successfully.
Expected behavior
PHPUnit testing should run as indicated in our CONTRIBUTING.md document.
The text was updated successfully, but these errors were encountered:
Problem/Motivation
When trying to run PHPUnit testing with lando on a new local Quickstart build as indicated in the How to contribute document, the command results in fatal errors and the tests are not completed.
Describe the bug
When running the
lando phpunit
orlando phpunit-fastest
commands, the XML configuration file (phpunit.xml.dist) cannot be located, resulting in multiple errors like the one below:To Reproduce
Steps to reproduce the behavior:
lando start
lando phpunit
orlando phpunit-fastest
Proposed resolution
Update references to the phpunit.xml.dist file path in .lando.yml so that the PHPUnit testing can run successfully.
Expected behavior
PHPUnit testing should run as indicated in our CONTRIBUTING.md document.
The text was updated successfully, but these errors were encountered: