-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DisconnectedClient disconnected from CONNECTED state (transport error) #7287
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
Comments
Hi @alexZaicev, |
Thanks, will check them out! Also, I have another question regarding testing, is it possible to get the status of |
@tsonevn I
I assume that {NS} already has |
Hey @alexZaicev , were you able to resolve this issue ? I am also facing a similar issue on running karma test in a nativescript application . I have just started creating a new workspace and tried running a simple test. Expecting your inputs please @tsonevn |
Did anyone manage to solve this error? Even I am facing the same problem. The device gets disconnected from the report view of test cases results even though all my test cases are successful. |
It's not using the browser only, even the device gets disconnected. It rapidly flashes the test results and then it gets closed down. |
Can you tell me what configurations have you made in your karma.config file for you nartivescript project ? |
Hello Everyone, |
me too 👍 |
Try to change the global prop to "false" in webpack config file:
|
Hi Guys, Does anyone able to fix this issue? Please suggest configuration is so. |
@anarnoli there's no error there, that disconnect is the test runner disconnecting after a full run. |
@edusperoni Thanks for confirmation. Just for curiosity - can we make any change in config or so that it can't be disconnected? |
@anarnoli What do you mean? Why do you want it to remain connected? You can use |
@edusperoni In my case it did not help. Even having |
|
@kfron I used below link to keep the app running in the emulator after the test run has completed. https://github.com/jcassidyav/nativescript-testing-demo/tree/main/blog#run-the-tests |
@kfron Did't helped this flag to resolve the purpose. |
Confirmed, this works!
|
Environment
Your ANDROID_HOME environment variable is set and points to correct directory.
√ Your adb from the Android SDK is correctly installed.
√ The Android SDK is installed.
√ A compatible Android SDK for compilation is found.
√ Javac is installed and is configured properly.
√ The Java Development Kit (JDK) is installed and is configured properly.
√ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
√ Getting NativeScript components versions information...
√ Component nativescript has 5.4.0 version and is up to date.
‼ Update available for component tns-core-modules. Your current version is 5.4.0 and the latest available version is 5.4.1.
√ Component tns-android has 5.4.0 version and is up to date.
‼ Update available for component tns-ios. Your current version is 5.3.1 and the latest available version is 5.4.0.
Contents of my package.json
Contents of karma.conf.js
Describe the bug
Whenever I try to run test cases on my android emulators, I can see the results, but I receive a warning from test runner:
26 05 2019 16:30:13.077:WARN [NativeScript / 26 (8.0.0; Android SDK built for x86)]: Disconnected (0 times)Client disconNativeScript / 26 (8.0.0; Android SDK built for x86) ERROR
And I can`t see my results in the browser or the emulator, only inside the console.
Expected behavior
I want to be able to what test failed and passed in the browser and if possible code coverage to see what branches were missed
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: