NativeScript / NativeScript/nativescript-cli
Add unit tests for specified areas
還沒有人認領這個 Issue。
- 主要語言
- 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
-
Test to check
More than one device found.is raised when we have more than once device and command wants to specify exact device (for exampletns deploy).
Reference: https://github.com/NativeScript/nativescript-tooling-qa/blob/b159533e42602c7a94f5ae349036d15014b9a834/tests/cli/device/test_deploy_and_device.py#L143 -
Test to check how we handle invalid device id passed with --device.
Reference: https://github.com/NativeScript/nativescript-tooling-qa/blob/b159533e42602c7a94f5ae349036d15014b9a834/tests/cli/device/test_deploy_and_device.py#L164
Tests related to passing invalid platform to commands
- Tests to check how we handle passing wrong platform to commands like
tns deployandtns device.
Reference:
https://github.com/NativeScript/nativescript-tooling-qa/blob/b159533e42602c7a94f5ae349036d15014b9a834/tests/cli/device/test_deploy_and_device.py#L148
https://github.com/NativeScript/nativescript-tooling-qa/blob/master/tests/cli/device/test_deploy_and_device.py#L160 - tns platform list with wrong project path
- tns platform add existing platform
- tns platform add wrong option
- tns platform remove missing invalid or empty_platform
- tns platform update empty platform
Tests related to signing behavior for iOS platform
-
tns run ios --emulatorandtns run ios --provision <provision>should rebuild the project -
tns run ios --provision <provision>andtns run ios --provision <provision>shouldn't rebuild the project -
tns run ios --emulatorandtns run ios --emulatorshouldn't rebuild the project
Tests for ios-project-service
- Adding
.frameworkand.xcframeworks to Xcode project (preparePluginNativeCode)
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
評估
這個 Issue 還沒有評估資料。