如何通过GitHub Action自动化Linux-Desktop上的Flutter应用程序自动化测试CI
我们希望通过GitHub操作使我们的集成测试在Linux桌面(Ubuntu-Latest)上起作用。
该命令是
flutter config --enable-linux-desktop
flutter test -d linux integration_test
,但我们总是会遇到错误:
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
//...
TestDeviceException(Unable to start the app on the device.)
package:flutter_tools/src/test/integration_test_device.dart 61:7 IntegrationTestTestDevice.start
GitHub操作可以在CPU上不够快地处理与GPU / GUI相关的内容或正在发生的事情。这甚至可能吗? 我只找到
谢谢!
We want to make our integration tests work on Linux desktop (ubuntu-latest) via Github Actions.
The command is
flutter config --enable-linux-desktop
flutter test -d linux integration_test
But we always get an error:
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
//...
TestDeviceException(Unable to start the app on the device.)
package:flutter_tools/src/test/integration_test_device.dart 61:7 IntegrationTestTestDevice.start
Can Github Actions not handle the GPU / GUI related stuff fast enough on the CPU or what is going on. Is this even possible?
I found only one repository which call similar command for a linux environment.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这对我来说就足够了 -
xvfb -run flutter Test -d linux Integration_test
xvfb
在 ubuntu 22.04 跑步者图像。积分 -
This was enough for me -
xvfb-run flutter test -d linux integration_test
xvfb
is pre-installed on Ubuntu 22.04 Runner Image.Credits -
我正在使用
gabrielbb/ github操作以启用xvfb。
I am using the
GabrielBB/[email protected]
github action to enable xvfb.我看到了这个问题,其中
xvfb
在答案中提到了:I saw this question, where
Xvfb
was mentioned in an answer, it worked: