Skip to content

NativeScript cli does not stop with Karma with singleRun: true #5617

Closed
@edusperoni

Description

@edusperoni

Issue Description

When run with singleRun: true the nativescript cli will no longer exit at the end of the process, which makes us unable to detect the exit code (success/fail on unit test run) and hangs CI

Reproduction

  1. create new project
  2. ns test init
  3. change to singleRun: true
  4. ns test android/ios
  5. karma will die but the cli won't report the exit code and will hang

Relevant log output (if applicable)

14 01 2022 02:23:47.950:DEBUG [NativeScript / 28 (9; AOSP on IA Emulator)]: EXECUTING -> CONNECTED

Finished in 8.803 secs / 7.01 secs @ 02:23:47 GMT-0300 (Brasilia Standard Time)

SUMMARY:
✔ 11 tests completed
14 01 2022 02:23:47.953:DEBUG [karma-server]: Run complete, exiting.
14 01 2022 02:23:47.954:DEBUG [launcher]: Disconnecting all browsers
14 01 2022 02:23:47.954:DEBUG [launcher]: null -> BEING_KILLED
14 01 2022 02:23:47.954:DEBUG [launcher]: BEING_KILLED -> BEING_FORCE_KILLED
14 01 2022 02:23:47.955:DEBUG [proxy]: Destroying proxy agents
14 01 2022 02:23:47.955:DEBUG [launcher]: BEING_FORCE_KILLED -> FINISHED
14 01 2022 02:23:47.956:WARN [NativeScript / 28 (9; AOSP on IA Emulator)]: Disconnected (0 times) Client disconnected from CONNECTED state (server shutting down)
NativeScript / 28 (9; AOSP on IA Emulator) ERROR
  Disconnected Client disconnected from CONNECTED state (server shutting down)
14 01 2022 02:23:47.957:DEBUG [NativeScript / 28 (9; AOSP on IA Emulator)]: CONNECTED -> DISCONNECTED
JS: NSUTR-socket.io: transport error
JS: NSUTR: completeAck

Environment

No response

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-pending-triageReported bug, pending triage to confirm.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions