Add unit testing framework and skeleton test project
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- cpp
Línea de trabajo
Revisa primero la configuración de compilación de C++ y la estructura del código fuente actuales del repositorio; en el issue no se nombran archivos ni pruebas específicos. Confirma el framework de pruebas unitarias seleccionado, añade su instalación y un proyecto de pruebas esqueleto, y documenta cómo se añadirán las pruebas futuras y cómo se ejecuta la cobertura.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C
- Estrellas
- 3.4k
- Forks
- 1.1k
- Merge medio
- 23 h 18 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de InfiniTimeOrg/InfiniTime
-
BLE handlers use length fields from the packet without checking how much data arrivedPosiblemente ocupada @DustinHab la tomó hace 41 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
InfiniTimeOrg/InfiniTime#2485 ·
-
Unexpected jump back to watch face when button pressedPosiblemente ocupada @SteveAmor la tomó hace 84 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
InfiniTimeOrg/InfiniTime#2461 · 2 comentarios ·
-
Screen doesn't go to sleep after reset countdown appPosiblemente ocupada @SteveAmor la tomó hace 82 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
InfiniTimeOrg/InfiniTime#2419 · 4 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
InfiniTimeOrg/InfiniTime#2410 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
InfiniTimeOrg/InfiniTime#2407 · 4 comentarios ·
Todos los issues de InfiniTimeOrg/InfiniTime
Issues similares
-
[mimalloc] update to 3.6.0Abiertocategory:port-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 2 días
-
emerge failure MARK mark-unstable media-kit
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
macaroni-os/mark-issues#834 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 93/100
webarkit/WebARKitLib#107 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día