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 links to runner output that open the file directly in my IDE #6259
Comments
You get all settings from
|
Closes Codeception#6259 I followed the syntax of https://phpstan.org/user-guide/output-format#opening-file-in-an-editor even though we would need the second `%` here. (This is due to some phpstan internals, the code ultimately reads `\str_replace(['%file%', '%line%'], ...` But I'd say having an *identical* `editorUrl` syntax between Codeception and phpstan by far outweighs the "cost" of some unneeded `%` characters... ;-)
@Naktibalda thanks! See #6261
You mean that it would only refer to some Codeception generated "temporary" file? |
Exceptions are usually raised by one of PHPUnit\Framework\Assert methods or application code. |
* Adding clickable `editorUrl` from `codeception.yml` Closes #6259 I followed the syntax of https://phpstan.org/user-guide/output-format#opening-file-in-an-editor even though we would need the second `%` here. (This is due to some phpstan internals, the code ultimately reads `\str_replace(['%file%', '%line%'], ...` But I'd say having an *identical* `editorUrl` syntax between Codeception and phpstan by far outweighs the "cost" of some unneeded `%` characters... ;-) * Update Console.php * Update Console.php * Update Console.php * Update Step.php * Update Console.php * Update Console.php * Update Console.php * Update Console.php * Update Console.php * Update Console.php * Update Console.php * Bringing back but `@deprecate`ing `getLine()`
I started implementing what I suggested at #6208 :
First step: The line https://github.com/Codeception/Codeception/blob/4.1/src/Codeception/Subscriber/Console.php#L360 needs to be replaced by something like:
My plan would be to define a new configuration parameter in
codeception.yml
, following phpstan's format (see https://phpstan.org/user-guide/output-format#opening-file-in-an-editor):And if this parameter is present, replace the value of "Test" here:
...with the clickable link.
Questions:
The text was updated successfully, but these errors were encountered: