Cannot run Karma Jasmine test even for HelloWorld
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
- Lĩnh vực
- cli, mobile-dev, testing-qa
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện ns test ios và ns test android với mẫu HelloWorld được liên kết. Đọc karma.conf.js và tsconfig.json, bao gồm cấu hình Jasmine, webpack và tệp kiểm thử được báo cáo, rồi ghi lại đầu ra khi lỗi. Hoàn tất khi template HelloWorld chạy các bài kiểm thử Karma Jasmine và hiển thị kết quả trong console.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
✔ Component nativescript has 8.0.1 version and is up to date.
ns doctor shows all green check marks
Android Runtime: 4.1.3
iOS Runtime: 12.4
XCode Version: 12.4
Plugin(s):
Describe the bug
Cannot run ns test ios or ns test android even it's just the HelloWord template directly from NativeScript WITHOUT one line of code added.
To Reproduce
create a project call HelloWorld ns create HelloWorld
'cd HelloWorld'
ns test init and pick Jasmine
add the following steps to fix some known issues
- npm install karma-webpack@next --save-dev
- In karma.conf.js, add webpack to frameworks section frameworks: ['jasmine', 'webpack']
- In tsconfig.json, add src/tests//*.ts in include section "include": ["src/tests//.ts", "src/**/.ios.ts", "src/**/*.android.ts"],
'ns test ios' or ns test android
Expected behavior
Test should run and result display on the console
Sample project
https://github.com/cupidchan/HelloWorld
Additional context
- 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ự
-
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
-
스택 PR 머지 시 하위 PR base 재지정 단계 부재 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
idean3885/claude-ops-agent#521 ·
-
[Nytt ikon]: menu-search Đang mởforespørsel 🥰 ikoner 🖼 nytt ✨
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
avniproject/avni-client#2135 ·
-
automated broken-link
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100