Problem/Motivation

TestSiteApplicationTest fails on sites with a long base path because symfony/console wraps the exception after a certain number of characters depending on the environment. The test passes on my local system in /Users/fweber/Sites/d8.localhost/web/ but not in /Users/fweber/Sites/d8-very-long-path-to-force-text-wrapping.localhost/web/

Proposed resolution

Pass the column length as env variable into the process, because the tests are executed in an non-interactive environment.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 2960214-2.patch864 byteswebflo

Comments

webflo created an issue. See original summary.

webflo’s picture

Status: Active » Needs review
StatusFileSize
new864 bytes
webflo’s picture

This triggers the wrapping without using phpunit.

yes | php core/scripts/test-site.php install --setup-file "[PATH-TO-DRUPAL]/core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php" --db-url "sqlite://tmp/site.sqlite"

webflo’s picture

sun’s picture

Status: Needs review » Reviewed & tested by the community

Looks simple enough to me.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

I wondered if there was a better way - like stripping all the returns but that doesn't work. Solution seems good.

Committed d487aa1 and pushed to 8.6.x. Thanks!

  • alexpott committed d487aa1 on 8.6.x
    Issue #2960214 by webflo: TestSiteApplicationTest fails on sites with...

Status: Fixed » Closed (fixed)

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