NativeScript / NativeScript/nativescript-cli
unit tests - no reachable hosts
未關閉
還沒有人認領這個 Issue。
unit testing
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
描述
I'm writing an app with Angular 8+ and NativeScript 6+.
I want to get unit tests working and I'd prefer to use karma.
I followed the directions on the web page exactly and created a fresh project:
https://docs.nativescript.org/tooling/testing/testing
When I run the command tns test android the tests don't run and on the device it says: 'no reachable hosts'
I don't see any errors on the terminal.
Environment:
- Android version 10
- tns --version 6.4.1
- NodeJS : v12.4.0
- npm : 4.6.1
- OS : Windows 10

貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從報告中連結的 NativeScript 測試文件開始,並在列出的 Android 和 Windows 環境中使用 tns test android 重現問題。追查裝置為何在終端機沒有錯誤的情況下回報「no reachable hosts」;當新專案的 Karma 單元測試在 Android 上成功執行時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, angular, javascript, node.js
- 領域
- cli, mobile, testing
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100