-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] backfilled golden tests from playground tests in aiks_unittests. #40770
Conversation
780bead
to
0162c6b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Golden file changes are available for triage from new commit, Click here to view. |
I've approved all changes since they look roughly right (modulo flutter/flutter#123789). It's worth just getting these landed and iterating on them as we want. |
impeller_component("aiks_unittests_golden") { | ||
testonly = true | ||
|
||
defines = [ "IMPELLER_GOLDEN_TESTS" ] |
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.
nit: consider making a GN template that just defines this rather than defining it in each invocation of impeller_component
that wants it.
GTEST_SKIP_( | ||
"GoldenPlaygroundTest doesn't support interactive playground tests " | ||
"yet."); | ||
} |
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.
It'd be nice if we could somehow check if the test actually used ImGui
or not. This will be brittle, but it's probably just temporary right?
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 looked into it, the problem is that we have to call GTEST_SKIP
inside of SetUp
so there's no way (at runtime) to know if a test is going to use ImGui in SetUp
=T
I think we should probably abolish any ImGui tests since they can't be automated. (edit: easily, automated easily)
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.
Alternatively we move them into some other target that makes it clear they'r enot automated tests.
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.
Yea I was thinking about something similar, maybe making the target something like impeller_playground
. I'm not sure if we want to just move everything over to goldens though. In which case there would be no need for that. I'm still trying to feel out the problem.
I'm going to rebase this to capture brandon's latest fix which should change a golden. |
Golden file changes are available for triage from new commit, Click here to view. |
issue: flutter/flutter#123790
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.