Overhaul Packages Testing: Add tests for `torrust-tracker-core` package

Đang mở
#2,902 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
testing

Hướng nghiên cứu

Read docs/issues/open/2902-1347-add-tests-tracker-core/ISSUE.md for the per-file workflow, pull-request slices, and open design questions; the issue says this specification is proposed in #2903 and will be on develop once merged. Start by checking the packages/tracker-core/ coverage evidence in that specification. Done means delivering the planned test slices and closing the issue with the final slice.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Add tests for the torrust-tracker-core package (packages/tracker-core/).

Parent EPIC: #1347

Specification

The repository-local specification is the source of truth for scope, the per-file workflow, the pull-request slices, the findings and the open design questions. It is proposed in the spec-only pull request #2903:

The work is delivered in several small pull requests (slices). Only the last one closes this issue.

Baseline Coverage

Measured on 2026-11-17 at develop commit 5833cdae9 with cargo-llvm-cov 0.6.16 and stable Rust 1.99.1, counting only packages/tracker-core/src/:

Scope Tests Lines Regions Functions
Unit-only (--all-features --lib) 157 unit 4,099 / 5,104 (80.31%) 5,716 / 7,127 (80.20%) 687 / 954 (72.01%)
Integration-only (--all-features --test integration) 12 integration 841 / 1,909 (44.05%) 936 / 2,506 (37.35%) 145 / 484 (29.96%)
Aggregate (--all-features) 157 unit + 12 integration 4,230 / 5,149 (82.15%) 5,834 / 7,182 (81.23%) 703 / 958 (73.38%)

The MySQL and PostgreSQL driver suites skip themselves without Docker and two environment variables, so those drivers count as uncovered here; that scope is measured separately. Per-file values are in the specification's coverage evidence.

Ngôn ngữ chính
Rust
Star
532
Fork
56
Merge trung bình
11 giờ 20 phút
Pull request đã merge (30 ngày)
282

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của torrust/torrust-tracker

Tất cả issue của torrust/torrust-tracker

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.