Unit testing en Windows 10

29
#helloWindows10 Hel10 Windows 10!

Transcript of Unit testing en Windows 10

Page 1: Unit testing en Windows 10

#helloWindows10

Hel10 Windows 10!

Page 2: Unit testing en Windows 10
Page 3: Unit testing en Windows 10

#helloWindows10

Fernando EscolarConsultant at [email protected]@fernandoescolar

Unit testing

Page 4: Unit testing en Windows 10
Page 5: Unit testing en Windows 10

#helloWindows10

Definición de Unit TestEstructura

Código Testeable

Unit TestEstructura

Herramientas

Conclusiones

Agenda

Page 6: Unit testing en Windows 10

#helloWindows10

Page 7: Unit testing en Windows 10

#helloWindows10

Input Process Output

Page 8: Unit testing en Windows 10

#helloWindows10

Installation testingCompatibility testingSmoke and sanity testingRegression testingAcceptance testingAlpha testingBeta testingFunctional vs non-functionaltestingDestructive testingSoftware performance testingUsability testingAccessibility testingSecurity testingInternationalization and localizationDevelopment testingA/B testing

Unit testingIntegration testingSystem testingAcceptance testing

White-Box testingBlack-box testingVisual testingGrey-box testing

Page 9: Unit testing en Windows 10

#helloWindows10

A unit test is a piece of a code (usually a method) that invokes

another piece of code and checks the correctness of some

assumptions afterward. If the assumptions turn out to be wrong, the

unit test has failed.

A “unit” is a method or function.

Unit test definition – The art of unit testing

Roy Osherove – Manning Publications co

Page 10: Unit testing en Windows 10

#helloWindows10

FIRST

Fast

Isolated

Repeatable

Self-Validating

Timely

Page 11: Unit testing en Windows 10

#helloWindows10

SECOND

Profesional

Unitario

Automatizable

No usa recursos

Page 12: Unit testing en Windows 10

#helloWindows10

Triple A

Arrange

Act

Assert

Page 13: Unit testing en Windows 10

#helloWindows10

Triple Cuádruple A

Assume

Arrange

Act

Assert

Page 14: Unit testing en Windows 10

#helloWindows10

Demo

Page 15: Unit testing en Windows 10

#helloWindows10

Page 16: Unit testing en Windows 10

#helloWindows10

Page 17: Unit testing en Windows 10

#helloWindows10

Demo

Page 18: Unit testing en Windows 10

#helloWindows10

…tengo que desglosarlos al máximo

Vs.

Page 19: Unit testing en Windows 10

#helloWindows10

Page 20: Unit testing en Windows 10

#helloWindows10

Inversion Of Control

Abstract Factory

Page 21: Unit testing en Windows 10

#helloWindows10

Demo

Page 22: Unit testing en Windows 10

#helloWindows10

Dummies

Fakes

Spies

Stubs

Mocks

Page 23: Unit testing en Windows 10

#helloWindows10

Demo

Page 24: Unit testing en Windows 10

#helloWindows10

Page 25: Unit testing en Windows 10

#helloWindows10

Encontrar bugs pronto

Red de seguridad

Documentación

Mejor diseño

Page 26: Unit testing en Windows 10

#helloWindows10

No detectan problemas de:Integración

Performance

No todo puede ser testeado con

facilidad:

Multi-threading

Algoritmos no deterministas

Page 27: Unit testing en Windows 10

#helloWindows10

TDD

ATDD

BDD

Page 28: Unit testing en Windows 10

#helloWindows10

Q&A

http://aka.ms/W10Ev14

Page 29: Unit testing en Windows 10

#helloWindows10

No olvides realizar la encuesta

¡Gracias!

Fernando [email protected]@fernandoescolar

http://aka.ms/W10Ev14