NativeScript / NativeScript/nativescript-cli

Add unit tests for specified areas

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

还没有人认领这个 Issue。

technical debt
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Is your feature request related to a problem? Please describe.
There are several cases covered by functional tests, which are more suitable for unit tests. Functional tests are much slower, so convert the appropriate ones to unit tests.

Describe the solution you'd like
Have more unit tests for scenarios currently covered with functional tests. Delete the affected functional tests after that. This will speed up the build.

Describe alternatives you've considered
No alternatives.

Additional context
Add unit tests for the following area:

  • Merging of build.xcconfig files:
    • Test scenario with build.xcconfig from plugin/multiple plugins
    • Test scenario with build.xcconfig from App_Resources/iOS
    • Test scenario with build.xcconfig from App_Resources/iOS and from plugins simultaneously

Tests related to work with devices

Tests related to passing invalid platform to commands

Tests related to signing behavior for iOS platform

  • tns run ios --emulator and tns run ios --provision <provision> should rebuild the project
  • tns run ios --provision <provision> and tns run ios --provision <provision> shouldn't rebuild the project
  • tns run ios --emulator and tns run ios --emulator shouldn't rebuild the project

Tests for ios-project-service

  • Adding .framework and .xcframeworks to Xcode project (preparePluginNativeCode)

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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