por Carlos Ble | Jul 19, 2011 | iExpertos, pyDoubles
What’s new in pyDoubles 1.3? times statement is also available in spies, not only mocks stubs ignoring arguments can live together with stubs defined with arguments a new matcher: obj_with_fields 1: This sintax is now possible:...
por Carlos Ble | Jul 17, 2011 | DDD
Nos lanzamos a programar con el objetivo incorrecto: terminar. El software nunca se termina, así que partir con el objetivo de terminar es partir con el barco hacia el arrecife. Lo vas a hundir. El software evoluciona o degenera, pero nunca se termina. El verdadero...
por Carlos Ble | Jul 16, 2011 | iExpertos, Test Driven Development
Do you really need a stub or do you better use a spy? Or is it a spy object with some stubbed specifications? Let’s see some examples using pyDoubles: You can choose a stub object to prepare the scenario and then, assert on the returned value of the system under...
por Carlos Ble | Jul 11, 2011 | iExpertos, DDD
This is just another way of viewing the SOLID design principles very very shortly 🙂 S: Methods with no more than 5 lines of code, classes with no more than 3 public methods (average). O: If it works, don’t touch it (extend it) L: Don’t abuse inheritance...
por Carlos Ble | Jul 10, 2011 | Test Driven Development
Del 20 al 23 de septiembre de 2011, tendrá lugar la #XPweek en Madrid. Se trata de los dos cursos abiertos de iExpertos, sobre iniciación a TDD y TDD avanzado, donde además veremos otras cuestiones de XP como la programación en pareja y el ciclo de desarrollo de los...
por Carlos Ble | Jul 8, 2011 | Test Driven Development
Hace poco en una code kata alguien me dijo, … “y qué ventajas tiene esto de hacer TDD?”. Le dije… en nuestro proyecto, actualmente con casi 25.000 lineas de código Python (multiplica x4 si piensas en Java), no hemos necesitado nunca bugtracker....
por Carlos Ble | Jul 6, 2011 | DDD, Test Driven Development
El próximo martes 12 de julio, facilitaré un coding dojo en las instalaciones de DECiDE, que llevará por título, El reto XP. Este evento es totalmente gratuito y las plazas son limitadas. Para inscribirse, está la siguiente url: http://decide.stagehq.com/events/916 El...
por Carlos Ble | Jul 1, 2011 | pyDoubles, Test Driven Development
There you go another version of the pyDoubles framework, mock objects for Python and more 😉 What’s new in this release? Two minor bugfixes. You can see test cases and fixes here and here. If you want to assert that a given object was passed in as a parameter, as...
por Carlos Ble | Jun 25, 2011 | Uncategorized
Hablar en público se ha mitificado hasta el punto que la gente ha olvidado que la finalidad es la misma que la de hacerlo en privado: comunicar. Angel Lafuente lleva casi 50 años enseñando oratoria por todo el país. En esta seria de 10 videos se le puede ver hablando...
por Carlos Ble | Jun 21, 2011 | Test Driven Development
I am glad to announce the release 1.0 of pyDoubles, the test doubles framework for Python. pyDoubles has been completely developed using TDD. We have been very careful with its design and have been refactoring along the way to make as simple as possible and still...