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

Show test pass at first frame #25

Merged
merged 1 commit into from
Mar 9, 2022
Merged

Conversation

fonsp
Copy link
Member

@fonsp fonsp commented Mar 9, 2022

Currently, we always show the second-to-last frame as the default, until you move the timeline:

This makes sense for test failures, because probably the last function call went from computed results to false, like a == call. But for test passes, it often just shows something trivial.

This PR makes the first frame the default for test passes. This means that you can hide all code, and sort of quickly see what was being tested:

But as you see in the screenshot, a large test expression means that it takes up more vertical space...

@fonsp fonsp requested a review from dralletje March 9, 2022 17:37
@dralletje
Copy link
Member

Yes!!! So much yes!!!

@dralletje
Copy link
Member

For the bigger space taken by expressions I'd rather fix the way the code is shown (eg single line blocks getting inlined)

@fonsp
Copy link
Member Author

fonsp commented Mar 9, 2022

Nice! #26

@fonsp fonsp merged commit be78e59 into main Mar 9, 2022
@fonsp fonsp deleted the show-test-pass-at-first-frame branch March 9, 2022 19:24
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