NativeScript / NativeScript/nativescript-cli
Auto-exit after `tns test` completes and allow for console output collection
未关闭
还没有人认领这个 Issue。
feature
unit testing
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
The currently recommended approach to running tns test in a CI environment is to use the --justlaunch switch, so that tns exits after the test run completes.
- We need a way to run without
--justlaunch, so we showconsole.logand other output to the user and let CI systems collect it in their build logs. - We also need a
--timeoutparameter that will kill the test run if it doesn't complete in X minutes/seconds.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 tns test 命令开始,跟踪现有的 --justlaunch 行为。通过保留 CI 所需的控制台输出、添加 --timeout 参数,并在测试运行完成或超时时自动结束测试运行,来定义完成条件。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- cli, testing
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100