Title: On a new test setup, Exemple Test does not show in test suite · Issue #5851 · NativeScript/nativescript-cli · GitHub
Open Graph Title: On a new test setup, Exemple Test does not show in test suite · Issue #5851 · NativeScript/nativescript-cli
X Title: On a new test setup, Exemple Test does not show in test suite · Issue #5851 · NativeScript/nativescript-cli
Description: Issue Description I'm trying to add tests to an older project. I followed the documentation. I'm using the latest cli version (8.9.x). The setup added an Exemple Test as app/tests/example.spec.ts. When I un ns test android, a blank app o...
Open Graph Description: Issue Description I'm trying to add tests to an older project. I followed the documentation. I'm using the latest cli version (8.9.x). The setup added an Exemple Test as app/tests/example.spec.ts. ...
X Description: Issue Description I'm trying to add tests to an older project. I followed the documentation. I'm using the latest cli version (8.9.x). The setup added an Exemple Test as app/tests/example.s...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/5851
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On a new test setup, Exemple Test does not show in test suite","articleBody":"### Issue Description\n\nI'm trying to add tests to an older project. I followed the [documentation](https://docs.nativescript.org/guide/testing#before-you-begin). I'm using the latest cli version (8.9.x). The setup added an `Exemple Test` as `app/tests/example.spec.ts`.\n\nWhen I un `ns test android`, a blank app opens in the emulator. Seems to be a runtime error.\n\n## Actual Behavior\n\n```\n# ns test android\nSearching for devices...\n18 08 2025 08:21:03.069:WARN [karma-server]: Passing raw CLI options to `new Server(config, done)` is deprecated. Use `parseConfig(configFilePath, cliOptions, {promiseConfig: true, throwErrors: true})` to prepare a processed `Config` instance and pass that as the `config` argument instead.\n18 08 2025 08:21:03.230:INFO [karma-server]: Karma v6.4.4 server started at http://0.0.0.0:9882/\n18 08 2025 08:21:03.230:INFO [launcher]: Launching browsers android with concurrency unlimited\n18 08 2025 08:21:03.233:INFO [launcher]: Starting browser NativeScript Unit Test Runner\nPreparing project...\nNativeScript-SQLite Sync not detected, disabling support!\nNativeScript-SQLite Encrypted not detected, disabling support!\nNativeScript-SQLite NoSQL/Keystore not detected, disabling support!\nwebpack is watching the files...\nresolving \"./stop-process.js\" to \"./stop-process.android.js\"\nassets by path i18n/*.json 87.5 KiB\n asset i18n/ar.json 20.6 KiB [compared for emit] [from: app/i18n/ar.json] [copied]\n asset i18n/fr.json 18 KiB [compared for emit] [from: app/i18n/fr.json] [copied]\n asset i18n/es.json 16.7 KiB [compared for emit] [from: app/i18n/es.json] [copied]\n asset i18n/id.json 16.7 KiB [compared for emit] [from: app/i18n/id.json] [copied]\n asset i18n/en.json 15.5 KiB [compared for emit] [from: app/i18n/en.json] [copied]\nassets by path *.js 26.4 MiB\n asset vendor.js 25.2 MiB [compared for emit] (name: vendor) (id hint: defaultVendor)\n asset bundle.js 1.18 MiB [compared for emit] (name: bundle)\n asset nativescript-sqlite-encrypted-nativescript-sqlite-sync-_package_json.js 19.6 KiB [compared for emit]\n asset runtime.js 14.5 KiB [compared for emit] (name: runtime)\nasset fonts/MaterialIcons-Regular.ttf 348 KiB [compared for emit] [from: app/fonts/MaterialIcons-Regular.ttf] [copied]\nasset formalto.sqlite 8 KiB [compared for emit] [from: app/formalto.sqlite] [copied]\nasset tns_modules/inspector_modules.js 1.21 KiB [compared for emit] (name: tns_modules/inspector_modules)\nEntrypoint bundle 26.4 MiB = runtime.js 14.5 KiB vendor.js 25.2 MiB bundle.js 1.18 MiB\nEntrypoint tns_modules/inspector_modules 25.2 MiB = runtime.js 14.5 KiB vendor.js 25.2 MiB tns_modules/inspector_modules.js 1.21 KiB\norphan modules 710 KiB [orphan] 83 modules\nruntime modules 7.15 KiB 23 modules\nmodules by path ./node_modules/ 8.94 MiB\n javascript modules 8.67 MiB 881 modules\n json modules 274 KiB 6 modules\nmodules by path ./app/ 293 KiB\n javascript modules 288 KiB 94 modules\n asset modules 5.31 KiB\n ./app/sqlite/migrations/versions.sql?raw 667 bytes [built] [code generated]\n + 28 modules\nexternal \"~/package.json\" 42 bytes [optional] [built] [code generated]\nexternal \"nativescript-sqlite-encrypted\" 42 bytes [optional] [built] [code generated]\nexternal \"nativescript-sqlite-sync\" 42 bytes [optional] [built] [code generated]\ncrypto (ignored) 15 bytes [built] [code generated]\nwebpack 5.91.0 compiled successfully in 5785 ms\nWebpack compilation complete. Watching for file changes.\nUpdating runtime package.json with configuration values...\nProject successfully prepared (android)\nFile change detected. Starting incremental webpack compilation...\nassets by status 26.9 MiB [cached] 12 assets\nEntrypoint bundle 26.4 MiB = runtime.js 14.5 KiB vendor.js 25.2 MiB bundle.js 1.18 MiB\nEntrypoint tns_modules/inspector_modules 25.2 MiB = runtime.js 14.5 KiB vendor.js 25.2 MiB tns_modules/inspector_modules.js 1.21 KiB\ncached modules 9.91 MiB (javascript) 7.15 KiB (runtime) [cached] 1118 modules\njavascript modules 1.34 KiB\n ./app/ sync \\.spec\\.ts$ 286 bytes [built]\n ./app/sqlite/migrations/ ?raw sync ^\\.\\/.*\\.sql$ 1.06 KiB [optional] [built]\nwebpack 5.91.0 compiled successfully in 185 ms\nWebpack compilation complete. Watching for file changes.\nRestarting application on device emulator-5554...\n NSUTR: fetching http://127.0.0.1:9882/context.json\n NSUTR: fetching http://192.168.0.121:9882/context.json\n NSUTR: fetching http://10.0.2.2:9882/context.json\n NSUTR: error fetching http://192.168.0.121:9882/context.json Error: java.io.IOException: Cleartext HTTP traffic to 192.168.0.121 not permitted\n NSUTR: error fetching http://127.0.0.1:9882/context.json Error: java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted\n NSUTR: error fetching http://10.0.2.2:9882/context.json Error: java.net.ConnectException: Failed to connect to /10.0.2.2:9882\nSuccessfully synced application com.devalto.formalto on device emulator-5554.\n```\n\n\u003cimg width=\"400\" height=\"787\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/5aae5965-d072-4818-a71d-06acf76b72f6\" /\u003e\n\nCopilot and ChatGPT told to use this to fix the above fetching problem in `karma.conf.js` . Seems to work some times. It does the same blank app if the context fetch works\n\n```\n // web server hostname\n hostname: '0.0.0.0',\n listenAddress: '0.0.0.0',\n```\n\n## Expected Behavior\n\nSee a log about test being run, succeed or fail.\n\n### Reproduction\n\n1. follow documentation to get tests setup installed\n2. run `ng test android`\n\n### Relevant log output (if applicable)\n\n```shell\nit's pretty long, so here's the end\n\n\nRestarting application on device emulator-5554...\nspawn: /home/sberube/Android/Sdk/platform-tools/adb \"-s\" \"emulator-5554\" \"shell\" \"am\" \"force-stop\" \"com.devalto.formalto\"\nResult when throw error is false:\n{ stdout: '', stderr: '', exitCode: 0 }\nspawn: /home/sberube/Android/Sdk/platform-tools/adb \"-s\" \"emulator-5554\" \"shell\" \"cat /dev/null \u003e /data/local/tmp/com.devalto.formalto-debugger-started\"\nResult when throw error is false:\n{ stdout: '', stderr: '', exitCode: 0 }\nspawn: /home/sberube/Android/Sdk/platform-tools/adb \"-s\" \"emulator-5554\" \"shell\" \"pm\" \"dump\" \"com.devalto.formalto\" \"|\" \"grep\" \"-A\" \"1\" \"MAIN\"\nResult when throw error is false:\n{\n stdout: ' android.intent.action.MAIN:\\n' +\n ' 568cf2a com.devalto.formalto/com.tns.NativeScriptActivity filter 13b311b\\n' +\n ' Action: \"android.intent.action.MAIN\"\\n' +\n ' Category: \"android.intent.category.LAUNCHER\"\\n',\n stderr: '',\n exitCode: 0\n}\nspawn: /home/sberube/Android/Sdk/platform-tools/adb \"-s\" \"emulator-5554\" \"shell\" \"am\" \"start\" \"-n\" \"com.devalto.formalto/com.tns.NativeScriptActivity\"\nResult when throw error is false:\n{\n stdout: 'Starting: Intent { cmp=com.devalto.formalto/com.tns.NativeScriptActivity }\\n',\n stderr: '',\n exitCode: 0\n}\nspawn: /home/sberube/Android/Sdk/platform-tools/adb \"-s\" \"emulator-5554\" \"shell\" \"ps\"\nResult when throw error is false:\n{\n stdout: 'USER PID PPID VSZ RSS WCHAN ADDR S NAME \\n' +\n 'root 1 0 10908188 3516 0 0 S init\\n' +\n 'root 2 0 0 0 0 0 S [kthreadd]\\n' +\n 'root 3 2 0 0 0 0 I [rcu_gp]\\n' +\n 'root 4 2 0 0 0 0 I [slub_flushwq]\\n' +\n 'root 5 2 0 0 0 0 I [netns]\\n' +\n 'root 9 2 0 0 0 0 I [mm_percpu_wq]\\n' +\n 'root 11 2 0 0 0 0 I [rcu_tasks_kthread]\\n' +\n 'root 12 2 0 0 0 0 I [rcu_tasks_trace_kthread]\\n' +\n 'root 13 2 0 0 0 0 S [ksoftirqd/0]\\n' +\n 'root 14 2 0 0 0 0 I [rcu_preempt]\\n' +\n 'root 15 2 0 0 0 0 S [rcub/0]\\n' +\n 'root 16 2 0 0 0 0 S [rcu_exp_gp_kthread_worker]\\n' +\n 'root 17 2 0 0 0 0 S [rcu_exp_par_gp_kthread_worker]\\n' +\n 'root 18 2 0 0 0 0 S [migration/0]\\n' +\n 'root 20 2 0 0 0 0 S [cpuhp/0]\\n' +\n 'root 21 2 0 0 0 0 S [cpuhp/1]\\n' +\n 'root 22 2 0 0 0 0 S [migration/1]\\n' +\n 'root 23 2 0 0 0 0 S [ksoftirqd/1]\\n' +\n 'root 26 2 0 0 0 0 I [inet_frag_wq]\\n' +\n 'root 27 2 0 0 0 0 S [kauditd]\\n' +\n 'root 28 2 0 0 0 0 S [khungtaskd]\\n' +\n 'root 29 2 0 0 0 0 S [oom_reaper]\\n' +\n 'root 30 2 0 0 0 0 I [writeback]\\n' +\n 'root 31 2 0 0 0 0 S [kcompactd0]\\n' +\n 'root 32 2 0 0 0 0 S [khugepaged]\\n' +\n 'root 33 2 0 0 0 0 I [cryptd]\\n' +\n 'root 34 2 0 0 0 0 I [kblockd]\\n' +\n 'root 35 2 0 0 0 0 I [blkcg_punt_bio]\\n' +\n 'root 36 2 0 0 0 0 I [edac-poller]\\n' +\n 'root 37 2 0 0 0 0 I [devfreq_wq]\\n' +\n 'root 38 2 0 0 0 0 S [watchdogd]\\n' +\n 'root 41 2 0 0 0 0 S [kswapd0]\\n' +\n 'root 43 2 0 0 0 0 S [erofs_worker/0]\\n' +\n 'root 44 2 0 0 0 0 S [erofs_worker/1]\\n' +\n 'root 45 2 0 0 0 0 I [kthrotld]\\n' +\n 'root 46 2 0 0 0 0 S [dmabuf-deferred-free-worker]\\n' +\n 'root 47 2 0 0 0 0 I [uas]\\n' +\n 'root 48 2 0 0 0 0 I [dm_bufio_cache]\\n' +\n 'root 49 2 0 0 0 0 I [mld]\\n' +\n 'root 50 2 0 0 0 0 I [ipv6_addrconf]\\n' +\n 'root 53 2 0 0 0 0 S [khvcd]\\n' +\n 'root 54 2 0 0 0 0 S [hwrng]\\n' +\n 'root 59 2 0 0 0 0 S [jbd2/vdd1-8]\\n' +\n 'root 60 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 61 2 0 0 0 0 I [kdmflush/254:0]\\n' +\n 'root 62 2 0 0 0 0 I [kdmflush/254:1]\\n' +\n 'root 63 2 0 0 0 0 I [kdmflush/254:2]\\n' +\n 'root 64 2 0 0 0 0 I [kdmflush/254:3]\\n' +\n 'root 65 2 0 0 0 0 I [kdmflush/254:4]\\n' +\n 'root 66 2 0 0 0 0 I [kdmflush/254:5]\\n' +\n 'root 67 2 0 0 0 0 I [kverityd]\\n' +\n 'root 68 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 69 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 70 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 71 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 74 1 10836548 1660 0 0 S init\\n' +\n 'root 75 1 10853164 1920 0 0 S ueventd\\n' +\n 'root 80 2 0 0 0 0 I [kdmflush/254:6]\\n' +\n 'root 82 2 0 0 0 0 I [kdmflush/254:8]\\n' +\n 'root 84 2 0 0 0 0 I [kdmflush/254:10]\\n' +\n 'root 85 2 0 0 0 0 I [kdmflush/254:11]\\n' +\n 'root 88 2 0 0 0 0 I [kdmflush/254:14]\\n' +\n 'root 90 2 0 0 0 0 I [kdmflush/254:16]\\n' +\n 'root 92 2 0 0 0 0 I [kdmflush/254:18]\\n' +\n 'root 94 2 0 0 0 0 I [kdmflush/254:20]\\n' +\n 'root 95 2 0 0 0 0 I [kdmflush/254:21]\\n' +\n 'root 97 2 0 0 0 0 I [kdmflush/254:23]\\n' +\n 'root 98 2 0 0 0 0 I [kdmflush/254:24]\\n' +\n 'root 100 2 0 0 0 0 I [kdmflush/254:26]\\n' +\n 'root 101 2 0 0 0 0 I [kdmflush/254:27]\\n' +\n 'root 102 2 0 0 0 0 I [kdmflush/254:28]\\n' +\n 'root 103 2 0 0 0 0 I [kdmflush/254:29]\\n' +\n 'root 105 2 0 0 0 0 I [kdmflush/254:31]\\n' +\n 'root 106 2 0 0 0 0 I [kdmflush/254:32]\\n' +\n 'root 107 2 0 0 0 0 I [kdmflush/254:33]\\n' +\n 'root 108 2 0 0 0 0 I [kdmflush/254:34]\\n' +\n 'root 109 2 0 0 0 0 I [kdmflush/254:35]\\n' +\n 'root 110 2 0 0 0 0 I [kdmflush/254:36]\\n' +\n 'root 111 2 0 0 0 0 I [kdmflush/254:37]\\n' +\n 'root 112 2 0 0 0 0 I [kdmflush/254:38]\\n' +\n 'root 113 2 0 0 0 0 I [kdmflush/254:39]\\n' +\n 'root 118 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 119 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 120 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 121 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'prng_seeder 126 1 10919580 3096 0 0 S prng_seeder\\n' +\n 'root 128 2 0 0 0 0 S [sugov:0]\\n' +\n 'root 129 2 0 0 0 0 S [sugov:1]\\n' +\n 'root 131 2 0 0 0 0 S [irq/18-goldfish_pipe_dprctd]\\n' +\n 'logd 132 1 10829360 7032 0 0 S logd\\n' +\n 'root 133 2 0 0 0 0 I [cfg80211]\\n' +\n 'lmkd 134 1 10781980 3008 0 0 S lmkd\\n' +\n 'system 135 1 10891216 2824 0 0 S servicemanager\\n' +\n 'system 136 1 10860192 2372 0 0 S hwservicemanager\\n' +\n 'root 138 2 0 0 0 0 S [psimon]\\n' +\n 'root 142 1 10858432 1548 0 0 S qemu-props\\n' +\n 'root 146 1 10847756 3576 0 0 S vold\\n' +\n 'root 150 2 0 0 0 0 I [kdmflush/254:40]\\n' +\n 'system 155 1 10829628 3560 0 0 S android.system.suspend-service\\n' +\n 'keystore 156 1 11009016 7920 0 0 S keystore2\\n' +\n 'system 157 1 10930044 2376 0 0 S android.hardware.atrace@1.0-service\\n' +\n 'nobody 158 1 10953268 4824 0 0 S android.hardware.security.keymint-service\\n' +\n 'root 160 2 0 0 0 0 I [usbip_event]\\n' +\n 'root 173 2 0 0 0 0 I [blk_crypto_wq]\\n' +\n 'root 181 2 0 0 0 0 S [jbd2/dm-40-8]\\n' +\n 'root 182 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'tombstoned 187 1 10812416 1924 0 0 S tombstoned\\n' +\n 'root 230 2 0 0 0 0 I [kverityd]\\n' +\n 'root 231 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 232 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 233 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 234 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 235 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 236 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 237 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 238 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 239 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 240 2 0 0 0 0 I [kverityd]\\n' +\n 'root 241 2 0 0 0 0 I [kverityd]\\n' +\n 'root 242 2 0 0 0 0 I [kverityd'... 14640 more characters,\n stderr: '',\n exitCode: 0\n}\nWasn't able to get pid of the app. Sleeping for \"100ms\".\nspawn: /home/sberube/Android/Sdk/platform-tools/adb \"-s\" \"emulator-5554\" \"shell\" \"ps\"\nResult when throw error is false:\n{\n stdout: 'USER PID PPID VSZ RSS WCHAN ADDR S NAME \\n' +\n 'root 1 0 10908188 3516 0 0 S init\\n' +\n 'root 2 0 0 0 0 0 S [kthreadd]\\n' +\n 'root 3 2 0 0 0 0 I [rcu_gp]\\n' +\n 'root 4 2 0 0 0 0 I [slub_flushwq]\\n' +\n 'root 5 2 0 0 0 0 I [netns]\\n' +\n 'root 9 2 0 0 0 0 I [mm_percpu_wq]\\n' +\n 'root 11 2 0 0 0 0 I [rcu_tasks_kthread]\\n' +\n 'root 12 2 0 0 0 0 I [rcu_tasks_trace_kthread]\\n' +\n 'root 13 2 0 0 0 0 S [ksoftirqd/0]\\n' +\n 'root 14 2 0 0 0 0 I [rcu_preempt]\\n' +\n 'root 15 2 0 0 0 0 S [rcub/0]\\n' +\n 'root 16 2 0 0 0 0 S [rcu_exp_gp_kthread_worker]\\n' +\n 'root 17 2 0 0 0 0 S [rcu_exp_par_gp_kthread_worker]\\n' +\n 'root 18 2 0 0 0 0 S [migration/0]\\n' +\n 'root 20 2 0 0 0 0 S [cpuhp/0]\\n' +\n 'root 21 2 0 0 0 0 S [cpuhp/1]\\n' +\n 'root 22 2 0 0 0 0 S [migration/1]\\n' +\n 'root 23 2 0 0 0 0 S [ksoftirqd/1]\\n' +\n 'root 26 2 0 0 0 0 I [inet_frag_wq]\\n' +\n 'root 27 2 0 0 0 0 S [kauditd]\\n' +\n 'root 28 2 0 0 0 0 S [khungtaskd]\\n' +\n 'root 29 2 0 0 0 0 S [oom_reaper]\\n' +\n 'root 30 2 0 0 0 0 I [writeback]\\n' +\n 'root 31 2 0 0 0 0 S [kcompactd0]\\n' +\n 'root 32 2 0 0 0 0 S [khugepaged]\\n' +\n 'root 33 2 0 0 0 0 I [cryptd]\\n' +\n 'root 34 2 0 0 0 0 I [kblockd]\\n' +\n 'root 35 2 0 0 0 0 I [blkcg_punt_bio]\\n' +\n 'root 36 2 0 0 0 0 I [edac-poller]\\n' +\n 'root 37 2 0 0 0 0 I [devfreq_wq]\\n' +\n 'root 38 2 0 0 0 0 S [watchdogd]\\n' +\n 'root 41 2 0 0 0 0 S [kswapd0]\\n' +\n 'root 43 2 0 0 0 0 S [erofs_worker/0]\\n' +\n 'root 44 2 0 0 0 0 S [erofs_worker/1]\\n' +\n 'root 45 2 0 0 0 0 I [kthrotld]\\n' +\n 'root 46 2 0 0 0 0 S [dmabuf-deferred-free-worker]\\n' +\n 'root 47 2 0 0 0 0 I [uas]\\n' +\n 'root 48 2 0 0 0 0 I [dm_bufio_cache]\\n' +\n 'root 49 2 0 0 0 0 I [mld]\\n' +\n 'root 50 2 0 0 0 0 I [ipv6_addrconf]\\n' +\n 'root 53 2 0 0 0 0 S [khvcd]\\n' +\n 'root 54 2 0 0 0 0 S [hwrng]\\n' +\n 'root 59 2 0 0 0 0 S [jbd2/vdd1-8]\\n' +\n 'root 60 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 61 2 0 0 0 0 I [kdmflush/254:0]\\n' +\n 'root 62 2 0 0 0 0 I [kdmflush/254:1]\\n' +\n 'root 63 2 0 0 0 0 I [kdmflush/254:2]\\n' +\n 'root 64 2 0 0 0 0 I [kdmflush/254:3]\\n' +\n 'root 65 2 0 0 0 0 I [kdmflush/254:4]\\n' +\n 'root 66 2 0 0 0 0 I [kdmflush/254:5]\\n' +\n 'root 67 2 0 0 0 0 I [kverityd]\\n' +\n 'root 68 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 69 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 70 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 71 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 74 1 10836548 1660 0 0 S init\\n' +\n 'root 75 1 10853164 1920 0 0 S ueventd\\n' +\n 'root 80 2 0 0 0 0 I [kdmflush/254:6]\\n' +\n 'root 82 2 0 0 0 0 I [kdmflush/254:8]\\n' +\n 'root 84 2 0 0 0 0 I [kdmflush/254:10]\\n' +\n 'root 85 2 0 0 0 0 I [kdmflush/254:11]\\n' +\n 'root 88 2 0 0 0 0 I [kdmflush/254:14]\\n' +\n 'root 90 2 0 0 0 0 I [kdmflush/254:16]\\n' +\n 'root 92 2 0 0 0 0 I [kdmflush/254:18]\\n' +\n 'root 94 2 0 0 0 0 I [kdmflush/254:20]\\n' +\n 'root 95 2 0 0 0 0 I [kdmflush/254:21]\\n' +\n 'root 97 2 0 0 0 0 I [kdmflush/254:23]\\n' +\n 'root 98 2 0 0 0 0 I [kdmflush/254:24]\\n' +\n 'root 100 2 0 0 0 0 I [kdmflush/254:26]\\n' +\n 'root 101 2 0 0 0 0 I [kdmflush/254:27]\\n' +\n 'root 102 2 0 0 0 0 I [kdmflush/254:28]\\n' +\n 'root 103 2 0 0 0 0 I [kdmflush/254:29]\\n' +\n 'root 105 2 0 0 0 0 I [kdmflush/254:31]\\n' +\n 'root 106 2 0 0 0 0 I [kdmflush/254:32]\\n' +\n 'root 107 2 0 0 0 0 I [kdmflush/254:33]\\n' +\n 'root 108 2 0 0 0 0 I [kdmflush/254:34]\\n' +\n 'root 109 2 0 0 0 0 I [kdmflush/254:35]\\n' +\n 'root 110 2 0 0 0 0 I [kdmflush/254:36]\\n' +\n 'root 111 2 0 0 0 0 I [kdmflush/254:37]\\n' +\n 'root 112 2 0 0 0 0 I [kdmflush/254:38]\\n' +\n 'root 113 2 0 0 0 0 I [kdmflush/254:39]\\n' +\n 'root 118 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 119 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 120 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 121 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'prng_seeder 126 1 10919580 3096 0 0 S prng_seeder\\n' +\n 'root 128 2 0 0 0 0 S [sugov:0]\\n' +\n 'root 129 2 0 0 0 0 S [sugov:1]\\n' +\n 'root 131 2 0 0 0 0 S [irq/18-goldfish_pipe_dprctd]\\n' +\n 'logd 132 1 10829360 7032 0 0 S logd\\n' +\n 'root 133 2 0 0 0 0 I [cfg80211]\\n' +\n 'lmkd 134 1 10781980 3008 0 0 S lmkd\\n' +\n 'system 135 1 10891216 2824 0 0 S servicemanager\\n' +\n 'system 136 1 10860192 2372 0 0 S hwservicemanager\\n' +\n 'root 138 2 0 0 0 0 S [psimon]\\n' +\n 'root 142 1 10858432 1548 0 0 S qemu-props\\n' +\n 'root 146 1 10847756 3576 0 0 S vold\\n' +\n 'root 150 2 0 0 0 0 I [kdmflush/254:40]\\n' +\n 'system 155 1 10829628 3560 0 0 S android.system.suspend-service\\n' +\n 'keystore 156 1 11009016 7920 0 0 S keystore2\\n' +\n 'system 157 1 10930044 2376 0 0 S android.hardware.atrace@1.0-service\\n' +\n 'nobody 158 1 10953268 4824 0 0 S android.hardware.security.keymint-service\\n' +\n 'root 160 2 0 0 0 0 I [usbip_event]\\n' +\n 'root 173 2 0 0 0 0 I [blk_crypto_wq]\\n' +\n 'root 181 2 0 0 0 0 S [jbd2/dm-40-8]\\n' +\n 'root 182 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'tombstoned 187 1 10812416 1924 0 0 S tombstoned\\n' +\n 'root 230 2 0 0 0 0 I [kverityd]\\n' +\n 'root 231 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 232 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 233 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 234 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 235 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 236 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 237 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 238 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 239 2 0 0 0 0 I [ext4-rsv-conver]\\n' +\n 'root 240 2 0 0 0 0 I [kverityd]\\n' +\n 'root 241 2 0 0 0 0 I [kverityd]\\n' +\n 'root 242 2 0 0 0 0 I [kverityd'... 14653 more characters,\n stderr: '',\n exitCode: 0\n}\nspawn: /home/sberube/Android/Sdk/platform-tools/adb \"-s\" \"emulator-5554\" \"logcat\" \"-T\" \"1\" \"--pid=16634\" \"-s\" \"chromium\" \"-s\" \"\"Web Console\"\" \"-s\" \"JS\" \"-s\" \"System.err\" \"-s\" \"TNS.Native\" \"-s\" \"TNS.Java\"\nspawn: /home/sberube/Android/Sdk/platform-tools/adb \"-s\" \"emulator-5554\" \"logcat\" \"-b\" \"system\" \"-T\" \"1\" \"-s\" \"ActivityManager\" \"--regex=Start.*com.devalto.formalto\"\nspawn: /home/sberube/Android/Sdk/platform-tools/adb \"-s\" \"emulator-5554\" \"forward\" \"--list\"\nResult when throw error is false:\n{\n stdout: 'emulator-5554 tcp:38623 localabstract:com.devalto.formalto-livesync\\n\\n',\n stderr: '',\n exitCode: 0\n}\n NSUTR: fetching http://127.0.0.1:9882/context.json\n NSUTR: fetching http://192.168.0.121:9882/context.json\n NSUTR: fetching http://10.0.2.2:9882/context.json\n NSUTR: error fetching http://192.168.0.121:9882/context.json Error: java.io.IOException: Cleartext HTTP traffic to 192.168.0.121 not permitted\n NSUTR: error fetching http://127.0.0.1:9882/context.json Error: java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted\n NSUTR: error fetching http://10.0.2.2:9882/context.json Error: java.net.ConnectException: Failed to connect to /10.0.2.2:9882\nHandle socket connection for app identifier: com.devalto.formalto with protocol version: 0.2.0.\nWill emit event runOnDeviceExecuted with data {\n projectDir: '/home/sberube/Projects/DevAlto/formalto',\n deviceIdentifier: 'emulator-5554',\n applicationIdentifier: 'com.devalto.formalto',\n syncedFiles: [],\n isFullSync: true\n}\nSuccessfully synced application com.devalto.formalto on device emulator-5554.\nWill emit event runOnDeviceStarted with data {\n projectDir: '/home/sberube/Projects/DevAlto/formalto',\n deviceIdentifier: 'emulator-5554',\n applicationIdentifier: 'com.devalto.formalto'\n}\n```\n\n### Environment\n\n```yaml\nOS: Linux 6.15 Fedora Linux 42 (Workstation Edition)\nCPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H\nShell: /bin/bash\nnode: 24.5.0\nnpm: 11.5.1\nnativescript: 8.9.3\n\n# android\njava: 17.0.16\nndk: Not Found\napis: 23, 26, 28, 29, 31, 32, 33, 34, 35, 36\nbuild_tools: 33.0.0, 34.0.0, 35.0.0, 35.0.1, 36.0.0\nsystem_images: \n - android-29 | Google Play Intel x86_64 Atom\n - android-31 | Google Play Intel x86_64 Atom\n - android-34 | Google Play Intel x86_64 Atom\n - android-36 | Google Play Intel x86_64 Atom\n\n# ios\nxcode: Not Found\ncocoapods: Not Found\npython: 3.13.5\npython3: 3.13.5\nruby: Not Found\nplatforms: Not Found\n```\n\n### Dependencies\n\n```json\n\"dependencies\": {\n \"@angular/animations\": \"~15.1.0\",\n \"@angular/common\": \"~15.1.0\",\n \"@angular/compiler\": \"~15.1.0\",\n \"@angular/core\": \"~15.1.0\",\n \"@angular/forms\": \"~15.1.0\",\n \"@angular/platform-browser\": \"~15.1.0\",\n \"@angular/platform-browser-dynamic\": \"~15.1.0\",\n \"@angular/router\": \"~15.1.0\",\n \"@imagene.me/nativescript-toast\": \"^2.0.3\",\n \"@master.technology/nativescript-http-formdata\": \"^3.1.4\",\n \"@nativescript-community/arraybuffers\": \"^1.1.1\",\n \"@nativescript-community/drawingpad\": \"^4.1.0\",\n \"@nativescript-community/gps\": \"^3.1.10\",\n \"@nativescript-community/sentry\": \"^4.6.12\",\n \"@nativescript/angular\": \"^15.0.0\",\n \"@nativescript/appversion\": \"^2.0.0\",\n \"@nativescript/camera\": \"~5.0.15\",\n \"@nativescript/core\": \"~8.7.0\",\n \"@nativescript/geolocation\": \"file:plugins/nativescript-geolocation-9.0.100.tgz\",\n \"@nativescript/imagepicker\": \"^2.0.2\",\n \"@nativescript/iqkeyboardmanager\": \"~2.1.1\",\n \"@nativescript/theme\": \"~3.0.2\",\n \"@nativescript/unit-test-runner\": \"^3.0.4\",\n \"@nativescript/zip\": \"^6.0.0\",\n \"@ngx-translate/core\": \"^11.0.1\",\n \"@ngx-translate/http-loader\": \"^4.0.0\",\n \"@nstudio/nativescript-checkbox\": \"^2.0.5\",\n \"@nstudio/nativescript-floatingactionbutton\": \"^3.0.4\",\n \"@nstudio/nativescript-pulltorefresh\": \"^3.0.2\",\n \"@proplugins/nativescript-drop-down\": \"file:plugins/nativescript-drop-down-9.0.2.tgz\",\n \"@proplugins/nativescript-platform\": \"file:plugins/nativescript-platform-1.4.17.tgz\",\n \"@proplugins/nativescript-platform-css\": \"file:plugins/nativescript-platform-css-2.1.0.tgz\",\n \"angular2-uuid\": \"1.1.1\",\n \"js-sha256\": \"^0.11.0\",\n \"jsqr\": \"^1.4.0\",\n \"lodash\": \"4.17.5\",\n \"moment\": \"2.20.1\",\n \"nativescript-barcodescanner\": \"^4.1.2\",\n \"nativescript-dna-deviceinfo\": \"^3.7.3\",\n \"nativescript-menu\": \"^1.1.7\",\n \"nativescript-modal-datetimepicker\": \"^2.1.5\",\n \"nativescript-sqlite\": \"^2.8.6\",\n \"nativescript-sqlite-commercial\": \"file:plugins/nativescript-sqlite-commercial-1.8.0.tgz\",\n \"nativescript-theme-core\": \"1.0.4\",\n \"nativescript-ui-autocomplete\": \"^15.2.3\",\n \"nativescript-ui-calendar\": \"^15.2.3\",\n \"nativescript-ui-chart\": \"^15.2.3\",\n \"nativescript-ui-dataform\": \"^15.2.3\",\n \"nativescript-ui-gauge\": \"^15.2.3\",\n \"nativescript-ui-listview\": \"^15.2.3\",\n \"nativescript-ui-sidedrawer\": \"^15.2.3\",\n \"rxjs\": \"~7.6.0\",\n \"zone.js\": \"~0.12.0\"\n},\n\"devDependencies\": {\n \"@angular-devkit/build-angular\": \"~15.1.0\",\n \"@angular-eslint/builder\": \"16.0.1\",\n \"@angular-eslint/eslint-plugin\": \"16.0.1\",\n \"@angular-eslint/eslint-plugin-template\": \"16.0.1\",\n \"@angular-eslint/schematics\": \"16.0.1\",\n \"@angular-eslint/template-parser\": \"16.0.1\",\n \"@angular/compiler-cli\": \"~15.1.0\",\n \"@jsdevtools/coverage-istanbul-loader\": \"3.0.5\",\n \"@nativescript/android\": \"8.7.0\",\n \"@nativescript/types\": \"~8.4.0\",\n \"@nativescript/webpack\": \"~5.0.12\",\n \"@ngtools/webpack\": \"~15.1.0\",\n \"@types/jasmine\": \"4.0.2\",\n \"@typescript-eslint/eslint-plugin\": \"5.59.2\",\n \"@typescript-eslint/eslint-plugin-tslint\": \"^5.59.2\",\n \"@typescript-eslint/parser\": \"5.59.2\",\n \"eslint\": \"^8.39.0\",\n \"eslint-config-semistandard\": \"^17.0.0\",\n \"eslint-config-standard\": \"^17.0.0\",\n \"eslint-plugin-import\": \"^2.27.5\",\n \"eslint-plugin-n\": \"^15.7.0\",\n \"eslint-plugin-promise\": \"^6.1.1\",\n \"karma\": \"6.4.4\",\n \"karma-coverage\": \"2.2.1\",\n \"karma-jasmine\": \"4.0.2\",\n \"karma-nativescript-launcher\": \"1.0.0\",\n \"karma-webpack\": \"^5.0.1\",\n \"nyc\": \"17.1.0\",\n \"ts-loader\": \"^9.5.2\",\n \"typescript\": \"~4.8.4\"\n}\n```\n\n### Please accept these terms\n\n- [x] I have searched the [existing issues](https://github.com/NativeScript/nativescript-cli/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\n- [x] This is a bug report\n- [x] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/sirber","@type":"Person","name":"sirber"},"datePublished":"2025-08-18T12:27:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/5851/nativescript-cli/issues/5851"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f0473b57-c0b9-e955-1592-65ae4584dfff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBD4:15B1C2:81E5CB8:AAF34F6:696DDD10 |
| html-safe-nonce | b79b155ee562d1675ac98e78d659834cfb38b804c526cf92656933f30897dbb2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkQ0OjE1QjFDMjo4MUU1Q0I4OkFBRjM0RjY6Njk2REREMTAiLCJ2aXNpdG9yX2lkIjoiMTIwMjcyOTI2NzE0OTc5MDQ4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c348fd0ba3d2583ff39a39b13eb6e590d2eabb65172ff47ea9f5bb801dd6c997 |
| hovercard-subject-tag | issue:3330515082 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/5851/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7ec62debce0bfb15815b0d79795eb9b204cec2cb9cc550ae9d16a45995a2bb6c/NativeScript/nativescript-cli/issues/5851 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ec62debce0bfb15815b0d79795eb9b204cec2cb9cc550ae9d16a45995a2bb6c/NativeScript/nativescript-cli/issues/5851 |
| og:image:alt | Issue Description I'm trying to add tests to an older project. I followed the documentation. I'm using the latest cli version (8.9.x). The setup added an Exemple Test as app/tests/example.spec.ts. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sirber |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width