Flutter integration test page does not mention the requirement for an x server to be running on the machine #10464
Labels
devos.Linux
Relates to developing apps on the Linux platform
e2-days
Effort: < 5 days
from.page-issue
Reported in a reader-filed concern
p1-high
Major but not urgent concern: Resolve in months. Update each month.
st.triage.ltw
Indicates Lead Tech Writer has triaged
target.Linux
Target apps on the Linux Platform
test.integration
Relates to integration testing
Page URL
https://docs.flutter.dev/testing/integration-tests
Page source
https://github.com/flutter/website/blob/main/src/content/testing/integration-tests/index.md
Describe the problem
Upon attempting to run integration tests on github actions I ran into an issue where the command
flutter test integration_test -d linux -r github
would fail due to there not being a debugger to connect to.After many attempts at getting this running, I found an obscure reference that the command above requires the existence of an x-server on Linux.
The following worked:
The usage of xvfb-run is required in CI using Linux and this is not documented.
Expected fix
Please add a reference to requiring an x-server running on linux for the integration_test to work.
Additionally, a working example of a github actions yml would be helpful for future users of this feature.
Here is an example of this:
Additional context
No response
I would like to fix this problem.
The text was updated successfully, but these errors were encountered: