SlideShare una empresa de Scribd logo
1 de 10
Buenos nombres
Arrange – Act – Assert
Probar una cosa cada vez
Kamehameha
INTEGRACIÓN
CONTÍNUA
Al probar un cosa cada vez, huir del
copiar y pegar, y optar por crear una
nueva clase con la inicializacioes
comunes, tener varios tests suites
Huir de "arquitectura" en los tests con
clases que heredan y demás. Aumenta
el coste del mantenimiento de los tests
y a primera vista puede parecer buena
idea
Inyectar dependencias
Inyección de
dependencias
TDD: Escribir primero el Test y luego el código.
Papel y lápiz par dibujar la "micro arquitectura" que
vamos a implementar
Identificar responsabilidades y testarlas unitariamente
con TDD
Tendremos un indicador de si el diseño que estamos
implementando "huele bien“
Vigilar la
cobertura
https://github.com/snahider/Test-Automation-NET
http://vimeo.com/68375232
Clean Code. (Robert C. Martin)
Test Driven Development: by example (Kent Beck)
Refactoring. Improving the design of existing code (Martin
Fowler)
Art of Unit Testing. (Roy Osherove)
@juanlao
jlao@plainconcepts.com
speakingin.net

Más contenido relacionado

Similar a Cartuja.NET: ALMDeando Making better tests

Behavior1
Behavior1Behavior1
Behavior1
arajar
 
Unit Testing with Mock Objects
Unit Testing with Mock ObjectsUnit Testing with Mock Objects
Unit Testing with Mock Objects
Angel Nuñez
 

Similar a Cartuja.NET: ALMDeando Making better tests (20)

Testing Ruby on Rails (spanish)
Testing Ruby on Rails (spanish)Testing Ruby on Rails (spanish)
Testing Ruby on Rails (spanish)
 
Test Driven Development. Fortalezas y Debilidades
Test Driven Development. Fortalezas y DebilidadesTest Driven Development. Fortalezas y Debilidades
Test Driven Development. Fortalezas y Debilidades
 
Apuntes #XPweek
Apuntes #XPweekApuntes #XPweek
Apuntes #XPweek
 
Introduccion a XP
Introduccion a XPIntroduccion a XP
Introduccion a XP
 
Introducción a tdd
Introducción a tddIntroducción a tdd
Introducción a tdd
 
Behavior1
Behavior1Behavior1
Behavior1
 
7iSF-4 test driver development
7iSF-4   test driver development7iSF-4   test driver development
7iSF-4 test driver development
 
Unidad ii. tdd
Unidad ii. tddUnidad ii. tdd
Unidad ii. tdd
 
Infrastructure as Code
Infrastructure as CodeInfrastructure as Code
Infrastructure as Code
 
Taller evento TestingUY 2015 - Técnicas de Automatización Going from GOOD to ...
Taller evento TestingUY 2015 - Técnicas de Automatización Going from GOOD to ...Taller evento TestingUY 2015 - Técnicas de Automatización Going from GOOD to ...
Taller evento TestingUY 2015 - Técnicas de Automatización Going from GOOD to ...
 
TDD (Test-Driven Development)
TDD (Test-Driven Development)TDD (Test-Driven Development)
TDD (Test-Driven Development)
 
Presentación: xUnit y Junit
Presentación: xUnit y JunitPresentación: xUnit y Junit
Presentación: xUnit y Junit
 
TDD Course (Spanish)
TDD Course (Spanish)TDD Course (Spanish)
TDD Course (Spanish)
 
Cursotdd 141202105217-conversion-gate01
Cursotdd 141202105217-conversion-gate01Cursotdd 141202105217-conversion-gate01
Cursotdd 141202105217-conversion-gate01
 
OOSE
OOSEOOSE
OOSE
 
Test unitarios
Test unitariosTest unitarios
Test unitarios
 
Test driven development
Test driven developmentTest driven development
Test driven development
 
Unit Testing with Mock Objects
Unit Testing with Mock ObjectsUnit Testing with Mock Objects
Unit Testing with Mock Objects
 
Docker y todo eso... más o menos
Docker y todo eso... más o menosDocker y todo eso... más o menos
Docker y todo eso... más o menos
 
Docker: de principante a pro
Docker: de principante a proDocker: de principante a pro
Docker: de principante a pro
 

Cartuja.NET: ALMDeando Making better tests