Fundamentos del Testing en Python
驴Qu茅 son las Pruebas Unitarias y por qu茅 es importante?
驴Qu茅 es el Testing en Software?
Instalaci贸n y Configuraci贸n del Entorno de Pruebas
Conceptos B谩sicos de Unittest
C贸mo Crear Pruebas Unitarias con UnitTest en Python
C贸mo usar el m茅todo setup en tests de Python
Uso de tearDown para limpieza de Pruebas Unitarias en Python
C贸mo validar excepciones y estructuras de datos con Unittest en Python
Control de pruebas unitarias con unittest.skip en Python
Organizaci贸n y Gesti贸n de Pruebas
C贸mo organizar y ejecutar pruebas en Python con UnitTest
Mejores pr谩cticas para organizar y nombrar pruebas en Python
T茅cnicas Avanzadas en Pruebas Unitarias
Mocking de APIs externas en Python con unittest
Uso de Side Effects en Mocking con Python
Uso de Patching para Modificar Comportamientos en Python
Exploraci贸n de Herramientas y M茅todos Complementarios
C贸mo parametrizar pruebas en Python con SubTest
Documentaci贸n de pruebas unitarias con Doctest en Python
C贸mo generar datos de prueba din谩micos con Faker en Python
Mejora y Automatizaci贸n de Pruebas
驴C贸mo asegurar la cobertura de pruebas con Coverage en Python
Automatizaci贸n de Pruebas Unitarias en Python con GitHub Actions
Pruebas Unitarias con PyTest en Python
C贸mo crear pruebas unitarias con inteligencia artificial en Python
You don't have access to this class
Keep learning! Join and start boosting your career
Integrating a test suite into a Continuous Integration (CI) system is key to automating the process of verifying code changes. In this case, we will use GitHub Actions to run our tests automatically every time there is a change in the repository, ensuring that the code is always working correctly.
First, access the "Actions" tab inside your GitHub repository. There you will find a Marketplace with several options. Search for "Python" and select the Action "Python Application". This configuration will run tests automatically every time there is a push or pull request to the "Main" branch.
git clone
.requirements.txt
file, e.g., Faker and Coverage.python -m unittest discover test
, tailored to the project's unit tests.Once the file is configured and the commit is done, you can see the progress of the execution in the "Actions" tab. If everything went well, a green checkmark will appear indicating that the tests passed successfully.
The additional challenge is to run the tests with different versions of Python using Matrix in GitHub Actions. This will allow you to test your code in various environments, ensuring greater robustness and avoiding compatibility issues.
Contributions 4
Questions 0
Want to see more contributions, questions and answers from the community?