Páginas

Mostrando entradas con la etiqueta tests. Mostrar todas las entradas
Mostrando entradas con la etiqueta tests. Mostrar todas las entradas

lunes, 18 de septiembre de 2017

Smarter testing and never waste time again.


Smarter testing and never waste time again.

The #1 programmer excuse for legitimately slacking off used to be “My code’s compiling”. 


These days it’s more likely “I’m running the tests”. We have time for a coffee (or two or three). That’s what we turn into code after all. 


We waste not only a lot of our time waiting until the very end of the build to see tests which we have just written failing, but also tons of resources making our CI servers sweat and having enormous queues of pending jobs. But what’s even more important - we switch contexts and thus we loose focus. 


Maybe we can test smarter? Join us in this workshop and bring your laptop to learn about a new tool we are working on that you stay in the zone and never waste time again. We know which tests you want to run.

Alex Soto, from RedHat will conduct this workshop . He's a usual speaker at the BarcelonaJUG events, as long as speaker in other big conferences like Devoxx, JavaZone, JavaLand, JavaOne...

Don't forget to register in our meetup event page, seats are limited.
Register to the event

                                  

viernes, 30 de mayo de 2014

Resumen "Mocks will be assimilated"

Hola juggers !!!

El pasado 25 de Abril tuvimos el placer de escuchar a Alex Soto hablar sobre el uso de Mocks y de otras alternativas útiles para el testing así como stubs y fakes.

Inicialmente nos introdujo una muestra de las opciones disponibles sobre mocking : mockito, jmock, easymock... para romper el hielo.

Uno de los aspectos del uso de mocking es que facilita mucho los tests pero hace que el código desarrollado para mockear los diversos elementos no sea reutilizable en el entorno de producción y además implica que habrá que destinar un tiempo ( grande en algunas ocasiones ) al desarrollo de los mocks.

Otra opción sería usar plataformas como Arquillian, que nos facilitan la encapsulación del entorno de test y que nos permitirá probar nuestros elementos sin tener que crear mocks o fakes de ellos.

Arquillian es una plataforma de testing en la que podemos crear tests fácilmente y sin la necesidad de mockear aspectos de la aplicación .



  • Real tests increase certainty
  • Real tests build confidence
  • Real tests increase robustness
  • Mock is an option, not a rule
  • Don’t let mocks ruin yourquality
  • Long Live and Prosper to tests
Con Arquillian creamos nuestros entornos de test con nuestros elementos reales, sin mockear y inicializamos los diferentes elementos ( persistencia, CDI, etc ) y probamos con la seguridad que nuestro código probado irá directamente a producción puesto que no habremos invertido tiempo mockeando los elementos.

Manage Lifecycle of Container
Create/Deploy MicroDeployments
Enriching Test Classes
Run Tests inside/against Container
IDE Friendly



Slides de la presentación : http://lordofthejars.github.io/bjugbank-decks/slides.html

Video