Skip to content

Use shorter test names in ghcide-tests #4591

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented May 13, 2025

When running the ghcide-tests, the test names are overflowing my terminal, leading to duplicated lines, making it more annoying to see the test progress.

Admittedly, this only happens when the terminal isn't using the full desktop width:

image

By shortening some of the longer test names, the output looks like this:

image

fendor added 2 commits May 13, 2025 17:57
The very long test name leads to overflows in the tasty test output
reporter, causing duplicated lines and generally harder to read output,
when the test output report is displayed.

We refactor the test specification to optionally accept 'TestName's
which can be shorter than the previous way of generating a test name.
@fendor fendor force-pushed the fix/shorter-test-name branch from 73b7cf1 to 770707f Compare May 13, 2025 15:57
Copy link
Collaborator

@soulomoon soulomoon left a comment

Choose a reason for hiding this comment

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

LGTM

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