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

Open
#2,902 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
testing

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Rust
Stars
532
Forks
56
Avg merge
11h 20m
Merged PRs (30d)
282

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from torrust/torrust-tracker

All issues in torrust/torrust-tracker

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.