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

Introduce snapshot unit tests for re_component_ui #8546

Merged
merged 8 commits into from
Dec 20, 2024

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Dec 19, 2024

Related

What

This PR introduces new "snapshot" unit test for re_component_ui. Every single component found in reflection (barring explicit exclusion) is now tested in various contexts. In this first PR, this includes:

  • read-only display in a narrow list item
  • read-only display in a wide list item

This test suite is now easy to expand by using the new helper functions, which cover pretty-printing the test results and ensuring that we don't leave "dangling" snapshots in the repo.

This PR also implements a bunch of minor UI fixes.

For now, this covers the single-line read-only display in the context of a list item (both narrow and wide)
@abey79 abey79 added 🔨 testing testing and benchmarks include in changelog labels Dec 19, 2024
Copy link

github-actions bot commented Dec 19, 2024

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
3f00945 https://rerun.io/viewer/pr/8546 +nightly +main

Note: This comment is updated whenever you push a commit.

@Wumpf Wumpf self-requested a review December 19, 2024 15:30
@abey79
Copy link
Member Author

abey79 commented Dec 19, 2024

@rerun-bot full-check

Copy link

Started a full build: https://github.com/rerun-io/rerun/actions/runs/12416220198

Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

love it!
did some minor fixes/brushup, going to land it with that once ci is happy

@Wumpf Wumpf merged commit 3532706 into main Dec 20, 2024
31 checks passed
@Wumpf Wumpf deleted the antoine/components-ui-tests branch December 20, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants