Skip to content

ns test android --justlaunch does not exit #31

@meeshkabob

Description

@meeshkabob

After upgrading karma-nativescript-launcher from ^0.4.0 to 1.0.0, flag --justlaunch no longer exits. The unit tests complete, and then the process continues to run. This is breaking our CI.

We fixed this by downgrading back to version ^0.4.0.

Here is the console output from tns test android --justlaunch:

12 09 2025 13:14:29.121:INFO [NativeScript / 36 (16; sdk_gphone64_x86_64)]: Connected on socket N7xCd3Erdm0OC0L9AAAB with id NativeScriptUnit-1265
NativeScript / 36 (16; sdk_gphone64_x86_64): Executed 1326 of 1326 SUCCESS (2 mins 27.936 secs / 2 mins 8.709 secs)
12 09 2025 13:17:01.181:WARN [NativeScript / 36 (16; sdk_gphone64_x86_64)]: Disconnected (0 times) Client disconnected from CONNECTED state
NativeScript / 36 (16; sdk_gphone64_x86_64) ERROR
  Disconnected Client disconnected from CONNECTED state (client namespace disconnect)
NativeScript / 36 (16; sdk_gphone64_x86_64): Executed 1326 of 1326 SUCCESS (2 mins 27.936 secs / 2 mins 8.709 secs)

Nativescript cli, @nativescript/core, and @nativescript/android are all running the latest.

➜  node --version
v24.7.0
➜  pod --version
1.16.2
➜  nvm --version
0.40.1
➜   ns doctor
✔ Getting environment information

No issues were detected.
✔ 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.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ Xcode version 16.4.0 satisfies minimum required version 10.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 8.9.3 version and is up to date.
✔ Component @nativescript/core has 8.9.9 version and is up to date.
✔ Component @nativescript/ios has 8.9.4 version and is up to date.
✔ Component @nativescript/android has 8.9.1 version and is up to date.

Here are our dependencies:

"dependencies": {
    "@angular/animations": "~20.2.3",
    "@angular/common": "~20.2.3",
    "@angular/compiler": "~20.2.3",
    "@angular/core": "~20.2.3",
    "@angular/forms": "~20.2.3",
    "@angular/platform-browser": "~20.2.3",
    "@angular/platform-browser-dynamic": "~20.2.3",
    "@angular/router": "~20.2.3",
    "@apollo/client": "^3.14.0",
    "@klippa/nativescript-http": "^3.0.4",
    "@nativescript-community/ui-material-bottomsheet": "^7.2.71",
    "@nativescript-community/ui-material-core": "^7.2.71",
    "@nativescript-community/ui-material-snackbar": "^7.2.71",
    "@nativescript-community/ui-material-tabs": "^7.2.71",
    "@nativescript/angular": "^20.0.0",
    "@nativescript/core": "^8.9.9",
    "@nativescript/firebase-analytics": "^5.0.2",
    "@nativescript/firebase-core": "^5.0.2",
    "@nativescript/firebase-crashlytics": "^5.0.2",
    "@nativescript/imagepicker": "^5.0.0",
    "@nativescript/iqkeyboardmanager": "^2.1.2",
    "@nativescript/localize": "^5.1.0",
    "@nativescript/secure-storage": "^3.0.2",
    "@nativescript/theme": "^3.0.2",
    "@nativescript/unit-test-runner": "^3.0.4",
    "@nativescript/zone-js": "^4.0.0",
    "@ngxs/form-plugin": "~20.1.0",
    "@ngxs/store": "~20.1.0",
    "@nstudio/nativescript-cardview": "^2.0.2",
    "@nstudio/nativescript-checkbox": "^2.0.4",
    "@unitehere/nativescript-phone": "^3.1.0",
    "apollo-angular": "~11.0.0",
    "classnames": "^2.5.1",
    "graphql": "^16.11.0",
    "lodash-es": "^4.17.21",
    "moment": "^2.30.1",
    "nativescript-clipboard": "^2.1.1",
    "nativescript-exit": "^1.0.1",
    "nativescript-modal-datetimepicker": "^2.1.5",
    "nativescript-oauth2": "^3.0.10",
    "nativescript-ui-sidedrawer": "^15.2.0",
    "ngxs-reset-plugin": "^4.0.0",
    "rxjs": "^7.8.1",
    "semver": "^7.7.2",
    "zone.js": "~0.15.0"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~20.2.1",
    "@biomejs/biome": "^2.2.2",
    "@faker-js/faker": "^10.0.0",
    "@jsdevtools/coverage-istanbul-loader": "^3.0.5",
    "@nativescript/android": "^8.9.1",
    "@nativescript/ios": "^8.9.4",
    "@nativescript/types": "^8.9.1",
    "@nativescript/webpack": "^5.0.24",
    "@ngtools/webpack": "~20.2.1",
    "@types/chai": "^5.2.2",
    "@types/jasmine": "^5.1.9",
    "@types/jasminewd2": "^2.0.10",
    "@types/lodash-es": "^4.17.6",
    "@types/node": "^24.3.0",
    "@types/rosie": "^0.0.45",
    "babel-types": "6.26.0",
    "babylon": "6.18.0",
    "husky": "^9.1.0",
    "karma": "^6.4.0",
    "karma-coverage": "^2.2.1",
    "karma-jasmine": "5.1.0",
    "karma-nativescript-launcher": "^1.0.0",
    "npm-run-all": "^4.1.5",
    "prettier": "^3.6.2",
    "rosie": "^2.1.0",
    "sass": "^1.63.6",
    "stylelint": "^16.2.0",
    "stylelint-config-standard": "^39.0.0",
    "stylelint-config-standard-scss": "^15.0.1",
    "stylelint-scss": "^6.1.0",
    "ts-node": "^10.9.2",
    "ts-patch": "^3.1.2",
    "tsconfig-paths": "^4.1.2",
    "typescript": "^5.7.3",
    "typescript-strict-plugin": "^2.1.0"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions