Comments (3)
Hi. I can confirm that this issue exists. When PatrolServer
or PatrolAppServiceClient
fails because of the port conflict, we should exit the process and write an error message which will inform the user about what happened
from patrol.
In my head there is a Mac joke about "fail different", but when I went to look I didn't find much...
Today I realised when running tests on MacOS, neither --test-server-port 8096 --app-server-port 8095
nor:
export PATROL_TEST_PORT=8096
export PATROL_APP_PORT=8095
appear to work. Based on:
2024-04-14 21:51:40.476839+0100 RunnerUITests-Runner[8137:43450] PatrolServer: INFO: PATROL_TEST_PORT is null, falling back to default (8081)
2024-04-14 21:51:40.476889+0100 RunnerUITests-Runner[8137:43450] PatrolServer: INFO: PatrolServer constructor called
2024-04-14 21:51:40.476914+0100 RunnerUITests-Runner[8137:43450] PatrolServer: INFO: PATROL_ENABLED flag is defined
2024-04-14 21:51:40.477263+0100 RunnerUITests-Runner[8137:43450] PatrolServer: INFO: Starting server...
2024-04-14 21:51:40.478539+0100 RunnerUITests-Runner[8137:43450] PatrolServer: INFO: Server started on http://0.0.0.0:8081
2024-04-14 21:51:40.478552+0100 RunnerUITests-Runner[8137:43450] Create PatrolAppServiceClient
2024-04-14 21:51:40.478604+0100 RunnerUITests-Runner[8137:43450] PatrolServer: INFO: PATROL_APP_PORT is null, falling back to default (8082)
2024-04-14 21:51:40.478623+0100 RunnerUITests-Runner[8137:43450] PatrolAppServiceClient: created, port: 8082
2024-04-14 21:51:40.478634+0100 RunnerUITests-Runner[8137:43450] Run the app for the first time
I guess they are not getting passed Through. Since the remaining workaround (move services on conflicting ports somewhere else) is trial for my use case I didn't look into the code.
Until that can be addressed (alpha status in https://patrol.leancode.co/getting-started is noted) this hopefully saves someone else some time.
from patrol.
actually it's worse 🤣
This will hang indefinately
patrol test -d macos --verbose \
--test-server-port 8096 --app-server-port 8095 \
-t integration_test/enabled_tests
While this work work:
patrol test -d macos --verbose \
-t integration_test/enabled_tests
from patrol.
Related Issues (20)
- Add privacy manifest for Apple HOT 1
- Issue with Patrol Flutter tests HOT 6
- Patrol Build for Parallel Testing in Bitrise HOT 1
- broken test_bundle generation HOT 3
- Support for '--dart-define-from-file' via Command Line HOT 4
- [Bug] Using Patrol and BranchSDK in the same project
- First test on FTL fails because of native exception HOT 5
- [Android] Keyboard does NOT close by any action after beeing opened by autofocus on inputfield widget. HOT 4
- Patrol test fails on Codemagic on "Building apk with entrypoint test_bundle.dart..." stage HOT 15
- Rerun failed tests in Patrol HOT 3
- Ability to run tests in profile mode
- [patrol_cli] "target <target location> is invalid" - message is misleading HOT 1
- Deprecated imperative apply of Flutter's Gradle plugins HOT 1
- Make a use of UIInterruptionMonitor for disabling Wi-Fi on iOS
- Unable to enter text into auth0 webview text fields due to NSInvalidArgumentException HOT 5
- The installed app does not automatically get deleted HOT 7
- Add `volumeUp` and `volumeDown` native capabilities HOT 1
- Add native `waitUntilAppIsVisible` capability
- Compile error when using "main" as test file name HOT 4
- allCandidates() function always returns candidates starting from root widget regardless of the selected PatrolFinder HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from patrol.