NativeScript / NativeScript/nativescript-cli
Running tns test android does not detect tests and is stuck in `test: loading; `
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Environment
- CLI: 8.1.4
- karma: 6.3.7
- karma-jasmine: 4.0.1
- karma-webpack: 5.0.0
- karma-nativescript-launcher: ~2.9.0
Describe the bug
I initalized tests using tns test init using jasmine. After running tns test android, in the browser the header shows test: loading and it doesn't appear to load any test files in the network tab. The mobile app that's launched on my emulator shows no tests. I did not make any modifications to the version of the dependencies or to the generated karma.conf.js. There were no errors in the logs.
To Reproduce
Run tns test init and select jasmine
Run tns test android, it launches the app with no tests displayed. In the browser, it displays test:loading
Expected behavior
My unit tests to be displayed and their status.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 tns test init 重现该问题,选择 Jasmine,然后运行 tns test android;在模拟器启动时检查生成的 karma.conf.js 和浏览器网络活动。将预期的测试加载流程与观察到的 test: loading 状态进行比较,当初始化的单元测试及其状态出现在浏览器和模拟器中时,即可认为问题已完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, javascript
- 领域
- cli, mobile, testing
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100