Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ideLink for printed test results #186

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Jul 27, 2021

Currently its sometimes hard when you run all tests and see that example test find by country and location is failing to get to the method call testFindByCountryAndLocation failing as you can not simple copy it from somewhere in the output.

This pull request tries to solve this issue by make use of the xdebug configuration and the console href links that the results are linked to the runned tests.

The xdebug support to configure a link format which can be used that printed stack trace is directly linked to the ide you are using:

xdebug.file_link_format = "phpstorm://open?file=%f&line=%l"

If this is now configured the output of the printer will link directly to the methods and so you can just click on them.

New output with clickable links:

Bildschirmfoto 2021-07-28 um 00 56 43

Old output Bildschirmfoto 2021-07-28 um 00 57 29

@alexander-schranz alexander-schranz force-pushed the feature/ide-link-support branch from 551810f to e2f25f9 Compare July 27, 2021 22:50
@nunomaduro nunomaduro closed this Jul 28, 2021
@nunomaduro
Copy link
Owner

No plans atm.

@alexander-schranz alexander-schranz deleted the feature/ide-link-support branch January 28, 2022 17:21
@mortenscheel mortenscheel mentioned this pull request Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants