Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

2 Días
15 Hrs
58 Min
6 Seg

¿Qué son las Pruebas Unitarias y por qué es importante?

1/20
Resources
Transcript

Testing software is not only a technical task, it is a critical process that can make the difference between the success or failure of a project. A small undetected error can cause big problems, as demonstrated in the case of the European Space Agency rocket in 1996. Fortunately, in software development we have tools like Python and its modules to ensure the quality of the code before it reaches the users.

What types of tests are necessary to ensure software quality?

  • Unit tests: They are in charge of validating that each small component of the code works correctly in isolation.
  • Integration tests: Verify that the different components work well together, avoiding problems in the interaction of parts.
  • Functional testing: Validates that the system as a whole works as expected according to the requirements.
  • Performance testing: Ensures that the software is fast and efficient, evaluating its behavior under different load conditions.
  • Acceptance testing: Determines whether the software meets the end user's expectations.

What testing tools does Python offer?

  • UnitTest: Allows you to create unit tests easily, ensuring that all parts of the code perform their function correctly.
  • PyTest: Facilitates the creation of tests with advanced configuration to cover different scenarios.
  • DocTest: Integrates tests directly into function comments, allowing you to validate code while maintaining documentation.

How to ensure that all lines of code are being tested?

It is crucial to identify the lines of code that are not covered by tests. For this, there is Coverage, a tool that generates an HTML report showing which parts of the code have not been validated, allowing additional tests to be added where necessary.

Why is testing important in software?

Testing ensures that software is functional, fast and reliable, but beyond that, it can prevent costly bugs, financial losses and in extreme cases, save lives. By testing software before it goes into production, developers have the advantage of correcting bugs before they impact users.

Contributions 16

Questions 0

Sort by:

Want to see more contributions, questions and answers from the community?

Hola todos y bienvenidos al curso! Estaré pendiente por acá. Deje todas las preguntas que quieran!
La importancia de las PRUEBAS en nuestro Software, nos permitirá garantizar la calidad de nuestro código.
Me Leyeron la mente... necesitaba este curso
Justo esta semana estaba pensando en preguntarle a Platzi cuándo tendrían un curso de Testing con Python! Que maravilla este lanzamiento 🚀💚
Las pruebas unitarias son un must en el mercado laboral actual así que agradecido por este curso. Mucho éxito a todos los que se embarquen en este viaje. Nunca paren de aprender.
Uno de los mejores profes de platzi, me alegra estar aqui!
Dominar el **Unit Testing en Python** te brinda la confianza para crear código sólido y fiable. Cada prueba es un paso hacia la excelencia en desarrollo, garantizando calidad y mantenimiento. Aprovecha este curso para fortalecer tus habilidades y elevar tu programación al siguiente nivel. ¡Nunca pares de aprender! 💚
Le tengo toda la fe a este curso. Espero poder aprender mucho de él y así poder hacer testing de código.
Excelente, de los mejores profes que hay, será un curso excelente sin duda.
Herramientas: Unit Test Pytest Doctest Coverage
Viendo testing en Python para implementar con JavaScript.
Muchas gracias por este curso. Lo quiero aprender primero por curiosidad y espero encontrar forma de aplicar lo aprendido en mi proyecto de tesis.
Excepto activision que no prueba los cambios antes de hacer deploy a producción.
Me encanta ver este tipo de cursos en Platzi para python, atiende las cosas fundamentales que se necesitan en cualquier pipeline de desarrollo. Por más cursos técnicos que sigan subiendo el nivel de los pythonistas!! 🐍
NECESITAMOS UN CURSO PROFESIONAL DE DRF!
¿Que tanto ocupo saber de Python? ¿Porque es nivel intermedio? porque en el de Django voy muy lento, aún no lo termino.?