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

Abierto
#2,902 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
532
Forks
56
Merge medio
11 h 20 min
PR fusionados (30 d)
282

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de torrust/torrust-tracker

Todos los issues de torrust/torrust-tracker

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.