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

chore(spec): Use awesome_print to debug tests #2140

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

julienbourdeau
Copy link
Contributor

@julienbourdeau julienbourdeau commented Jun 6, 2024

Description

I use pp a lot to print variables or messages when I'm debugging with tests. Unfortunately, it's printing only one line without colors in my tests. It's all pretty in the console. I must be missing something but one solution I like is to use the awesome_print gem.

Am I the only one with this problem?

BEFORE

CleanShot 2024-06-06 at 15 27 47@2x

AFTER

CleanShot 2024-06-06 at 15 26 26@2x

BONUS

You can go and uncomment one line to easily see where you left your pp.
Especially useful when you started editing gems 😬

CleanShot 2024-06-06 at 15 26 41@2x

@julienbourdeau julienbourdeau self-assigned this Jun 6, 2024
Copy link
Collaborator

@vincent-pochet vincent-pochet left a comment

Choose a reason for hiding this comment

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

👍

@julienbourdeau julienbourdeau merged commit 813be74 into main Jun 6, 2024
6 checks passed
@julienbourdeau julienbourdeau deleted the chore/awesome-print branch June 6, 2024 15:35
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.

3 participants