Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Similar to \Drupal\FunctionalJavascriptTests\JavascriptTestBase::createScreenshot
it would be nice to have a little helper which spits
out the current page into a file, really similar to the verbose mode, but without requiring the verbose mode to actually be there.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#3 | 2793451-output-page.patch | 887 bytes | larowlan |
Comments
Comment #2
larowlanding ding
Comment #3
larowlanHere's one I made earlier
Comment #4
dawehnerMh, in my usecases I would like to actually specify the path where the HTML should be.
Comment #5
dawehner@larowlan
What are your thoughts about that?
Comment #6
larowlan@dawehner - sure, we could make it an optional parameter right?
Comment #7
dawehner+1
Comment #8
klausiWhy do we need this now that BrowserTestBase logs each and every page response with #2763401: PHPunit browser tests should log all Mink requests?
Or do you want to do it if $this->htmlOutputEnabled is false?
Comment #9
dawehnerWell, the debug logger doesn't work when you use an alternative php test runner, like the one build into PHPStorm.
Comment #10
klausiAccording to rfay the newest PHPStorm release supports our custom output printer, please try that.
Comment #11
larowlan2016.3 doesn't support it yet, thanks to @benjy for testing
Comment #15
jibranI think this can be closed now.