-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add egui_kittest
, a test harness for egui
#5166
Merged
Merged
Changes from 36 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
c50394a
Add egui testing library
lucasmerlin d5dedba
Improved usability
lucasmerlin 608e4df
Rename and move kittest to external crate
lucasmerlin 6f2691f
Enable git lfs for snapshots files
lucasmerlin e791a74
Add widget_gallery.png
lucasmerlin 0853a52
Fix Cargo.toml formatting
lucasmerlin 661bc3e
Add snapshot tests for all demos
lucasmerlin 87cdb17
Move demo snapshots
lucasmerlin ee3e766
Update kittest
lucasmerlin e63ffa3
Add text_edit.rs test and fix ime input
lucasmerlin bba834b
Typo
lucasmerlin b2db13d
Run tests with gpu
lucasmerlin 94d0b84
Improve snapshot error
lucasmerlin f26e98d
Test if snapshots fail in ci
lucasmerlin 02f734c
Update dify
lucasmerlin 80381ab
Fix lints
lucasmerlin 7cbf557
Try if tests fail on style change
lucasmerlin d478162
Upload snapshots as artifacts
lucasmerlin 10c0767
Fail tests on missing snapshot
lucasmerlin b4f7129
Checkout with lfs
lucasmerlin b00315b
Always upload artifacts
lucasmerlin 2ac2d85
Update dify
lucasmerlin d7b874e
"un-break" tests
lucasmerlin 66a6c00
Fix lint
lucasmerlin e0d8263
Always run egui_demo_lib tests with chrono feature
lucasmerlin e1a8196
Add Harness::builder and add README.md
lucasmerlin a5994d8
Add documentation
lucasmerlin dcdc601
Fixes after rebase
lucasmerlin 76aa7ad
Fixes tests after rebase (where do those dots come from?)
lucasmerlin da32e8c
Checkout lfs
lucasmerlin d0a307d
Only run tests on macos
lucasmerlin 0d4cebf
Set fixed date in widget_gallery test
lucasmerlin 84977aa
Fix doc
lucasmerlin 2d411a8
Fix deny
lucasmerlin cac6db8
Fix doc tests
lucasmerlin 311d447
Refactor events and impl debug for Harness
lucasmerlin ddf79ce
Use kittest from main
lucasmerlin 148e79a
Review changes
lucasmerlin 24f29d6
Remember mouse position
lucasmerlin 27414ea
Add comment about threshold and for the SnapshotError variants
lucasmerlin b2fe731
Improved snapshot error handling
lucasmerlin 554fc57
Rename texture_to_bytes
lucasmerlin 97ecb25
Round screen size
lucasmerlin c9d1bea
Add step function
lucasmerlin 2b1fafa
Add more convenient snapshot api, allow reusing the TestRenderer and …
lucasmerlin df24f74
lints
lucasmerlin e824e01
Update example snapshot
lucasmerlin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
* text=auto eol=lf | ||
Cargo.lock linguist-generated=false | ||
**/tests/snapshots/**/*.png filter=lfs diff=lfs merge=lfs -text | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just apply lfs to all png:s everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, but I think we should do that in a separate PR. And it should also include gifs, which seem to be the biggest files in the repo. And maybe also the entirety of the media folder.