Add unit testing framework and skeleton test project
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
- Đình trệ
- Công nghệ
- cpp
- Lĩnh vực
- build-system, documentation, embedded-iot, testing-qa
Hướng nghiên cứu
Trước tiên, hãy xem xét cấu hình build C++ hiện tại và bố cục mã nguồn của repository; issue không nêu tên tệp hoặc test cụ thể nào. Xác nhận framework kiểm thử đơn vị đã chọn, thêm phần cài đặt framework đó cùng một project test khung, sau đó ghi lại cách thêm các test trong tương lai và cách chạy coverage.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Verification
- I searched for similar issues (including closed issues) and found none was relevant.
Introduce the issue
Unit testing can improve code quality, help developers find bugs, and make it easier to add new features.
After looking into the project I see that there are no unit tests for Infinitime. I would like to suggest that the community adopts a unit testing framework and add documentation to the source code on how to include test coverage to new or existing code.
Preferred solution
After some initial research it looks like Google Test is a framework that is easy to integrate into an existing project and it has some nice features. There are a lot of unit testing frameworks out there for C++ and I think the community should discuss in case people have preferences for other solutions.
For the scope of this issue, I think the chosen framework should be installed and a skeleton test project should be added to the source code. It should also be well documented and provide a rough outline on how future tests could be included.
Version
No response
- Ngôn ngữ chính
- C
- Star
- 3.4k
- Fork
- 1.1k
- Merge trung bình
- 23 giờ 18 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không 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 InfiniTimeOrg/InfiniTime
-
BLE handlers use length fields from the packet without checking how much data arrivedCó thể đã có người làm @DustinHab đã nhận 39 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
InfiniTimeOrg/InfiniTime#2485 ·
-
Unexpected jump back to watch face when button pressedCó thể đã có người làm @SteveAmor đã nhận 83 ngày trước. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
InfiniTimeOrg/InfiniTime#2461 · 2 bình luận ·
-
Screen doesn't go to sleep after reset countdown appCó thể đã có người làm @SteveAmor đã nhận 80 ngày trước. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
InfiniTimeOrg/InfiniTime#2419 · 4 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
InfiniTimeOrg/InfiniTime#2410 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
InfiniTimeOrg/InfiniTime#2407 · 4 bình luận ·
Tất cả issue của InfiniTimeOrg/InfiniTime
Issue tương tự
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
linux-test-project/ltp#1343 · 1 bình luận ·
-
test_audio_host: out-of-bounds read in test_audio_host_uses_exponential_full_speed_iso_intervalĐang mởfollowup Prio 📌
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
micropython/micropython#19798 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100