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
Golden Testing on iOS and Android #15
Comments
Hi! Can you be a little more specific?
I haven't tried it in the context of a flutter integration test, but I believe you can use the matcher |
We have tried many times and we do not believe it is possible. We have tried on Windows, Linux and Android. If it's possible, we would love to hear about how you did it. |
AFAIK, Alchemist wasn't intended to be run within an integration test context (@jeroen-meijer, correct me if I'm wrong), and I don't think we want to move away from using Flutter's vanilla golden test infrastructure centered around Here's an article I've stumbled across before that might be helpful to your situation, although I presume you've already seen it: https://blog.codemagic.io/flutter-automated-screenshot-testing/ Essentially, they recommend using |
The problem is with I just want to make a point though that not being able to run I just cannot understand why |
@definitelyokay this is probably the best we can do |
That makes sense @MelbourneDeveloper.
I can't say it won't ever happen, but I don't think it's on the radar right now. I don't think any of us working on Alchemist have explored generating screenshots on devices just yet — if we (or you, or anyone) ends up creating an engine that can act as a back-end to replace matchesGoldenFile which can gather screenshots while running on-device, that would likely be the start of a new open source project related to integration testing. Just guessing, though. |
Is there an existing feature request for this?
Command
Golden Testing on iOS and Android
Description
As a developer, I would like to do golden testing on iOS and Android
Reasoning
These are the platforms we target
Additional context and comments
We currently run golden testing on our pipelines but we cannot do golden testing on integration tests so we cannot test goldens on actual phones.
We currently produce goldens with lots of different sizes with a Linux desktop. That's a problem because the pipeline goldens don't match our local goldens (Mac / windows). We have to do eleborate hacks just to incorporate goldens in our flow.
We've done plenty of research on this and the only other way we can so this is to take literal screenshot and then do image compares ourself.
If this library would allow us to do golden testing on integration tests, especially with Android and iOS, it would be a quantum leap forward for us and basically every flutter developer on the planet that does golden testing.
Thanks
The text was updated successfully, but these errors were encountered: