discussion: adding unit/integration tests for client . files
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript, typescript
- Lĩnh vực
- testing
Hướng nghiên cứu
Bắt đầu bằng việc xem xét phạm vi bao phủ được đề xuất cho i18n.js, persistState.ts, reducers.ts, store.ts và theme.js, cùng với các tệp được đề xuất bỏ qua. Xác định những tệp và hành vi nào cần được bao phủ, bao gồm việc reducers.ts có cần smoke test hay không và testing.md có nên được cập nhật hay không; công việc được xem là hoàn tất khi phạm vi đã được thống nhất và các test được chọn đã được thêm vào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Proposed Tests
| File | Type | What to Cover |
|---|---|---|
| i18n.js | Unit | languageKeyToLabel, languageKeyToDateLocale, currentDateLocale, language selection precedence (window.INITIAL_STATE vs detected fallback) |
| persistState.ts | Unit | Save/load/clear happy paths, invalid JSON, missing storage values, storage errors with console.warn |
| reducers.ts | Smoke? | Needs discussion — unsure if a smoke test is worth adding to verify combined state shape keys and init state, without re testing each child reducer deeply. |
| store.ts | Unit | showReduxDevTools() conditions, setupStore() behavior (persisted state precedence, clearState called, dev-tools enhancer toggling) |
| theme.js | Unit | remSize, prop success/error states, extend immutability/deep merge, key overrides in contrast theme |
Files I'm skipping (browserHistory.js, constants.js, middleware.js) — don't seem to need tests, but open to feedback.
Discussion Questions
1. Which files actually need tests?
Are the files in the table above the right ones to focus on, or are some not worth testing? Should reducers.ts get a smoke test?
2. Is this a priority right now? If not, which folders/files in the codebase would benefit most from test coverage first?
3. Should we update testing.md?
Currently it's hard to know which files need tests. Would it make sense to add a checklist of all files that need coverage to testing.md in the contributor docs, and check them off as coverage improves? This would make it easier for contributors to pick up testing tasks without guessing.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.7k
- Fork
- 1.7k
- Merge trung bình
- 7 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc 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 processing/p5.js-web-editor
-
Unable to rename sound filesCó thể làm lại được @prithq đã nhận 8 ngày trước và không có pull request nào đang mở. Đang mởAwaiting Maintainer Approval Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
processing/p5.js-web-editor#4392 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Renaming a folder doubles the folder name in file paths (console errors show /lib/lib/helper.js)Đang mởAwaiting Maintainer Approval Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
processing/p5.js-web-editor#4365 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
p5 logo is broken on verification emailsCó thể đã có người làm @sourabh65mehta đã nhận 23 ngày trước. Đang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
processing/p5.js-web-editor#4364 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 4 ngày
-
`PATCH /editor/project/visibility` returns 200 with `null` and doesn't update when `projectId` is a slugCó thể làm lại được @Prbhtsgh đã nhận 31 ngày trước và không có pull request nào đang mở. Đang mởAwaiting Maintainer Approval Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
processing/p5.js-web-editor#4348 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Fix: example.js stores defaultHTML function reference instead of calling it, causing examples to display raw JavaScript source in previewCó thể đã có người làm @syedbarkath980 đã nhận 9 ngày trước. Đang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
processing/p5.js-web-editor#4344 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của processing/p5.js-web-editor
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ImranR98/apps.obtainium.imranr.dev#2000 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
routing: the tray panel's stage stands still with motion reduced while a request is in flightĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
microsoft/monaco-editor#5577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
obsidianmd/obsidian-help#1169 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[docs] RELEASE.md: wrong branch name, no check that the prepare PR merged with the right subject, manual publish stepCó thể đã có người làm @albertteoh đã nhận hôm nay. Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
jaegertracing/jaeger-ui#4739 ·
Maintainer thường phản hồi trong vòng 1 ngày