No tienes acceso a esta clase

¡Continúa aprendiendo! Únete y comienza a potenciar tu carrera

TDD Test-Driven Development

18/25
Recursos

Hoy en día en la industria del software se menciona mucho TDD. Tal vez se lo menciona mucho más de lo que realmente se utiliza, ya que es difícil para un equipo de trabajo utilizar esta metodología. Veamos de qué se trata:

Qué es Test Driven Development

TDD o Test Driven Development se refiere a una práctica de desarrolladores y desarrolladoras donde primero escriben las pruebas de software, y luego el software en sí.

  • Testing is so important that you want to use it as effectively as you possibly can and to do this you need to follow the TDD philosophy.
  • TDD is all about writing tests before writing the code and will allow you to have solid, specific ideas about what your software needs to do.
  • This gives you clarity.

Haz que tu código pase de ROJO a VERDE

Si tú escribes pruebas sin código que las respalde, obviamente fallarán. TDD consiste en llevar todas tus pruebas que han fallado, a un resultado satisfactorio.

  • Most of the time you will be writing tests before you even start writing code.
  • Those tests will fail the first time you run them and that is only logical.
  • Before we write any new code we need to write a failing test.
  • Your goal is to get your tests passed. That is to go GREEN.
    • RED = Falling
    • GREEN = Passing
  • Testing a single element promotes implementing the simplest code possible to make your tests pass.

¡Nunca te saltes las pruebas!

Escribir pruebas es difícil, tanto para ti como para todo tu equipo. Pero sé consiente de su importancia en grandes proyectos y de los grandes dolores de cabeza que te evitará siempre hacer pruebas.

  • Remember to automate your tests whenever possible.
    • Repetitive tasks.
    • People vs. Computers.
  • Do unit testing and system testing.
  • System testing exercises the functionality of the system from front to back in real-world, black box scenarios.

Las pruebas de software son todo un mundo y una profesión. Más allá de que seamos desarrolladores o desarrolladoras de software, nos corresponde tener conocimiento y escribir nuestras propias pruebas con código. La calidad del producto que estamos desarrollando se verá reflejada a futuro gracias a este esfuerzo.


Contribución creada por: Kevin Fiorentino.

Aportes 33

Preguntas 7

Ordenar por:

¿Quieres ver más aportes, preguntas y respuestas de la comunidad?

o inicia sesión.

For me, it’s one of the best courses in Platzi, in general covers a bunch of terms that every developer must-knows in the labor day by day.

For those who want to delve into the subject. Test Driven Development (TDD) | Crash Course | 2020

Test-Driven Development
Is all about designing tests first, the code it.
Think about testing as a driver

TDD Philosophy: Write test before code

Make your code from red to green
First, write a failing test
Code so you can pass them
Then refactor as a final step

Never skip tests
Automate your test whenever possible

  • Repetitive tasks
  • People vs Computers
  • Do Unit and System Testing

This course is amazing, this course is the best so far, I have took many courses and I ´m surpised by the level of this course. The teacher´s level is amazing and his way to explain the topics is very simple, at the same time give us a lot of important and relevant information… I´m very greatedful for this course indeed.

TDD Test-Driven Development Test-Driven Development
Is all about designing tests first, the code it.
Think about testing as a driver

TDD Philosophy: Write test before code

Make your code from red to green
First, write a failing test
Code so you can pass them
Then refactor as a final step

Never skip tests
Automate your test whenever possible

Repetitive tasks
People vs Computers
Do Unit and System Testing TDD:

The idea is to test as a driver.
Writing test before writing the code.
Make your code go from RED to GREEN:
Most of the time you’ll be writing tests before you even start writing code.
Those tests will fail the first time you run them and that’s only logical
Your goal is to get your test to pass to green.
Never skip tests:
Remember to automate your test whenever possible.
For humans is hard to keep doing the same task all the time.
System testing exercises the functionality of the system from front to back in real-world, black box scenarios.

TDD:

  • The idea is to test as a driver.
  • Writing test before writing the code.
    Make your code go from RED to GREEN:
  • Most of the time you’ll be writing tests before you even start writing code.
  • Those tests will fail the first time you run them and that’s only logical
  • Your goal is to get your test to pass to green.
    Never skip tests:
  • Remember to automate your test whenever possible.
  • For humans is hard to keep doing the same task all the time.
  • System testing exercises the functionality of the system from front to back in real-world, black box scenarios.

I remember we saw this topic in the introduction to software development class at school, but I didn’t understand it then, now I can see that it was more easy than I thought

it’s a necessary course that every developer should see, it covers a lot of important information that we will need in different situations

This course is perfect for understanding general concepts as a developer with lots of examples!..it’s amazing!

Thanks

thank you teacher

Class exente
Exelent
Okey
Hello
For me, it’s one of the best courses in Platzi, in general covers a bunch of terms that every developer must-knows in the labor day by day.
Hello

Thanks

Firts

Also

More

Awesome

Hello

With this explanation, now I have more clear CI/CD. Thanks so much!

Remember to automate your tests whenever possible. We as humans are bad at repetitive things. Computers are good at it.

thanks to platzi and the teacher Carlos Arriaga is a great course!!

talking about test, is a great idea this cours have little tests in the classes, this way the student alway is “updated”.

great
excelente
ikle

This course is awesome!!

That’s right with that advice about first writing text and then code everything is accurate and well established!