Add unit tests for specified areas
Chưa có ai nhận issue này.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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)
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 204
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 8
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NativeScript/nativescript-cli
-
in-progress
NativeScript/nativescript-cli#6140 · 2 bình luận · 1 người được giao ·
-
NativeScript/nativescript-cli#6090 · 1 người được giao ·
-
in progress
NativeScript/nativescript-cli#6015 · 1 reaction · 1 người được giao ·
-
question
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
NativeScript/nativescript-cli#5992 · 5 bình luận ·
-
feature-pending-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
NativeScript/nativescript-cli#5975 ·
Tất cả issue của NativeScript/nativescript-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Seeed-Studio/wiki-documents#5655 · 2 bình luận ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
capricorn86/happy-dom#2435 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Edit: CW+ Đang mởchannels:edit check:passed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
01 type: bug 30 needs: triage 99 tag: UX Accessibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100