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鈥檚 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鈥檒l be writing tests before you even start writing code.
Those tests will fail the first time you run them and that鈥檚 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鈥檒l be writing tests before you even start writing code.
  • Those tests will fail the first time you run them and that鈥檚 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鈥檛 understand it then, now I can see that it was more easy than I thought

it鈥檚 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鈥檚 amazing!

Thanks

thank you teacher

Class exente
Exelent
Okey
Hello
For me, it鈥檚 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 鈥渦pdated鈥.

great
excelente
ikle

This course is awesome!!

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