NativeScript / NativeScript/nativescript-cli

unit tests - no reachable hosts

未关闭
#5,283 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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

Screenshot_20200318-190116_Fresh2

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。