Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Relative paths for awesome console better DX #63

@TomasVotruba

Description

@TomasVotruba

I'm using https://plugins.jetbrains.com/plugin/7677-awesome-console in PHPStorm.
It allows you to click on filepaths in CLI and open them in PHPStorm.

It only works reliably with relative paths to cwd() though and PHPUnit uses absolute by default.

E.g. instead of:

-/var/www/projects/my-project/tests/SomeFile.php
+tests/SomeFile.php

Saying that, 2 features might come handy:

1. Relative paths for data provider value, that is file path

Currently, the filename is truncated - see bett...ns.php:

image

It would be great if the bett...ns.php path would be full and relative.


2. Relative path of test case fail

When any assert fail, the path is now absolute (TagValueNodeReprintTest.php:33):

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions