by Carlos Ble | Jun 12, 2012 | Software Development, Test Driven Development
Some javascript developers say that “===” operator is always better than “==”. I disagree with that. I find javascript a different language when you test-drive your code. Different rules and concerns apply. If you test-drive your code, most of...
by Carlos Ble | Jan 27, 2012 | Agile, Software Development, Test Driven Development
Hay un mal que se esta extendiendo por la aplicación en las últimas semanas. Es el ResponseDTO. Es un objeto plano, tiene un campo “success” de tipo boolean y un campo “message” de tipo string. Debía llamarse Response pero colisionaba, así que...
by Carlos Ble | Jan 26, 2012 | Software Development, Test Driven Development
Note: this post will probably evolve, the text will be updated as I need it. In order to write cleaner interaction tests (those which use test doubles; mocks, spies, stubs) you should understand how your test doubles framework works. Interaction tests can be extremely...
by Carlos Ble | Jan 16, 2012 | Test Driven Development
Don’t be confused, the title is just to get your attention. This is not a benchmark between Mockito and Moq. I need to explain some differences to my teammates so that the transition between Mockito and Moq is softer for them. Typical way to stub out a method...
by Carlos Ble | Dec 19, 2011 | Agile, Software Development, Test Driven Development
You hate it, you love it You start hating it but you might end up having so much fun with Javascript. It takes time to acquire the taste and enjoy the powerful capabilities that annoy you at the beginning. This is my experience learning this popular language. Take...
by Carlos Ble | Dec 1, 2011 | Software Development, Test Driven Development
The new version of mockito comes with a new method: spy. Very useful feature but… bad name! The mockito’s “mock” method creates already a spy object. The “spy” method creates a “proxy” or “proxy spy” object....