Skip to content

Commit

Permalink
Remove --testdox parameter from phpunit command
Browse files Browse the repository at this point in the history
The `--testdox` parameter replaces the printer we previously set with `--printer`.

This causes the following problems:
- The previous exception is not shown, see sebastianbergmann/phpunit#5863
- The "HTML output was generated" message from Drupal is not shown.

By removing the argument we fall back to the Drupal output printer. A developer can still manually append --testdox when running `ddev phpunit`.
  • Loading branch information
donquixote authored Jun 12, 2024
1 parent 03ebd77 commit f7583fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/web/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ if [ -f "phpunit.xml" ]; then
phpunit "$@"
else
# Bootstrap Drupal tests and run all custom module tests.
phpunit --printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" --bootstrap $PWD/$DDEV_DOCROOT/core/tests/bootstrap.php --testdox $DDEV_DOCROOT/modules/custom "$@"
phpunit --printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" --bootstrap $PWD/$DDEV_DOCROOT/core/tests/bootstrap.php $DDEV_DOCROOT/modules/custom "$@"
fi

0 comments on commit f7583fd

Please sign in to comment.