Unit testing en Windows 10
-
Upload
fernando-escolar-martinez-berganza -
Category
Technology
-
view
469 -
download
1
Transcript of Unit testing en Windows 10
#helloWindows10
Hel10 Windows 10!
#helloWindows10
Definición de Unit TestEstructura
Código Testeable
Unit TestEstructura
Herramientas
Conclusiones
Agenda
#helloWindows10
#helloWindows10
Input Process Output
#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
#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
#helloWindows10
FIRST
Fast
Isolated
Repeatable
Self-Validating
Timely
#helloWindows10
SECOND
Profesional
Unitario
Automatizable
No usa recursos
#helloWindows10
Triple A
Arrange
Act
Assert
#helloWindows10
Triple Cuádruple A
Assume
Arrange
Act
Assert
#helloWindows10
Demo
#helloWindows10
#helloWindows10
#helloWindows10
Demo
#helloWindows10
…tengo que desglosarlos al máximo
Vs.
#helloWindows10
#helloWindows10
Inversion Of Control
Abstract Factory
…
#helloWindows10
Demo
#helloWindows10
Dummies
Fakes
Spies
Stubs
Mocks
#helloWindows10
Demo
#helloWindows10
#helloWindows10
Encontrar bugs pronto
Red de seguridad
Documentación
Mejor diseño
#helloWindows10
No detectan problemas de:Integración
Performance
…
No todo puede ser testeado con
facilidad:
Multi-threading
Algoritmos no deterministas
…
#helloWindows10
TDD
ATDD
BDD
#helloWindows10
Q&A
http://aka.ms/W10Ev14
#helloWindows10
No olvides realizar la encuesta
¡Gracias!
Fernando [email protected]@fernandoescolar
http://aka.ms/W10Ev14