Skip to content

DX: Use relative fixture path as integration test case's name#7147

Merged
Wirone merged 2 commits intoPHP-CS-Fixer:masterfrom
Wirone:codito/friendly-integration-testdox-cases
Jul 13, 2023
Merged

DX: Use relative fixture path as integration test case's name#7147
Wirone merged 2 commits intoPHP-CS-Fixer:masterfrom
Wirone:codito/friendly-integration-testdox-cases

Conversation

@Wirone
Copy link
Copy Markdown
Member

@Wirone Wirone commented Jul 12, 2023

Before:

image

After:

image

@Wirone Wirone self-assigned this Jul 12, 2023
@Wirone Wirone enabled auto-merge (squash) July 12, 2023 22:40
@Wirone Wirone force-pushed the codito/friendly-integration-testdox-cases branch from f2bd6b5 to d5bede0 Compare July 12, 2023 23:31
@SpacePossum
Copy link
Copy Markdown
Contributor

I made the full path so it is easier to copy-paste it to find the file, so I'm not in favor of this change.

@Wirone
Copy link
Copy Markdown
Member Author

Wirone commented Jul 13, 2023

I don't really see any use case where full path would be helpful and actually needed. Short path like here is sufficient, longest form that should be printed is relative path from the root of the project IMHO 🙂.

@SpacePossum
Copy link
Copy Markdown
Contributor

relative path from the root of the project

sounds like a good compromise 👍

@Wirone
Copy link
Copy Markdown
Member Author

Wirone commented Jul 13, 2023

Changed the path to be relative to project's root dir. vendor/bin/phpunit --testdox tests/IntegrationTest.php:

image

Copy link
Copy Markdown
Member

@kubawerlos kubawerlos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Wirone 👍🏼

@Wirone Wirone merged commit fc41c98 into PHP-CS-Fixer:master Jul 13, 2023
@Wirone Wirone deleted the codito/friendly-integration-testdox-cases branch July 13, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants