Closed
Description
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
- create new project
- ns test init
- change to
singleRun: true
- ns test android/ios
- 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
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct