-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
spike: investigate if Fluttium can run on CI #185
Comments
@wolfenrain I'm using Fluttium in CI, in Buildkite and it's working well, even when other tests are running in parallel. This is the pipeline step running Fluttium. My only wish at the moment would be to get higher resolution screenshots, as they are pixelated and low-resolution now. Or even better, capture in the same way that |
Thanks for the library, super helpful. |
Oh that is interesting! Glad to know it is running in some CI situations already!! The screenshots are being taken directly from the device (using the |
Ah yes! We should probably use https://api.flutter.dev/flutter/widgets/MediaQueryData/devicePixelRatio.html if we can access it somehow! |
I can confirm that it works fine after just editing the respective file in It also works fine when setting to |
I would opt to default to the pixel ratio of the device and then have people pass it as a parameter if they want to override it. Parameters are automatically passed to actions, so if you add it to the constructor it will be automatically available in the yaml. We can access the pixel ratio if we expose media query data on the class Tester {
...
MediaQueryData get mediaQuery => MediaQueryData.fromWindow(_bindings.instance.window);
...
} |
Thanks, where would I add that in my project? |
That is meant to go into Fluttium itself haha, to expose information about the device, so we can access the |
Hehe cool, yeah once that lands the pixel ratio from the device will probably suffice anyway. Until then my hack editing the file directly on my CI is fine, thanks 🙏 |
Will be available once #229 lands! |
Wow, that was fast, thanks a lot! |
@wolfenrain there's a potential improvement that could be made for running in CI. Currently, my test flow running in CI (Buildkite) results in roughly 142K lines of log output, which is a bit excessive (and might also slow things down noticeably). Buildkite deals rather gracefully by only showing the last 1MB of logs in the UI and still allowing to download the entire log file. Could the excessive logging be reduced? I did try the |
Are you running with the |
@wolfenrain great thanks, that works well, now I only have just over 200 lines of logs for the same test flow. |
@wolfenrain when I use |
Can you open a new issue for that with a reproducible example? The reporter should not influence that |
@wolfenrain done, thanks 🤓 |
hi @wolfenrain, i have question this might be out of conversation topic, Can Fluttium mock an authentication process |
Description
I haven't actively explored if Fluttium can run on CI, in theory it should but it might need some minor code changes on the CLI side to make that a more streamlined experience.
Requirements
The text was updated successfully, but these errors were encountered: