Posts

Showing posts with the label Unit Test

My BerlinJS Slides

It was a great event today at @co_up in @berlinjs meet-up and here are my sides about wru which accordingly with today meeting means where are you , directly out of SMS syntax. Enjoy ;)

wru, unit tests have ever been that easy

Do you remember my good old wru project ? It has been refactored , readapted for both client and server side environment such node.js and Rhino and, most important, it landed in github ;) Please spend few minutes to read the documentation and you'll realize why I chose this title for this post. Have fun with JavaScript Unit Tests!

Technical Reviews: Bestsellers!

Image
Just a quick one about two technical reviews out of two I have recently done for @stoyanstefanov and @cjno for these completely different books: JavaScript Patterns and Test-Driven JavaScript Development . Right now these are both Top 10 Bestsellers and trust me: other JavaScript Jedis have been involved, you won't regret these lectures! ;-)

wru against wru: version 1 ready

Image
This shot has been token on 13th September 1923, when W.H. Murphy demonstrated the efficiency of his bulletproof vest, the one that sold later to NY Police Department. Above image has been historically used for different topics and the current one is " how much we trust what we sell ". Do You Trust Your UT Framework? I wasn't kidding that much when I wrote about " test the testing framework " in my precedent wru post . The overall Unit Test Frameworks code coverage is poor , specially those with all the magic behind the scene, magic that does not come for free. Use The Framework Itself To Test The Framework This is a common technique that may result in a reliability deadlock . If we trust our UT Framework and we use it to test itself, the moment we have a problem with the framework we'll never know ... or even worst, it will be too late. Don't Trust "Magic" Too Much If the framework is simple and it does not pollute each test with any sort of ...

WRU: My New Tiny Unit Test Library

The last and only developer able to let me fully appreciate the beauty of Test-Driven JavaScript Development has been @cjno , but regular " fights " with @mrgnrdrck and @sleistner have always helped me as well ;) This post is about my tiny wru library and general thoughts about JavaScript Unit Test Frameworks. WRU: Essentials Asynchronous Tests The wru library is a copy and paste matter, and it is possible to test it directly here . Why Wru Well, sometimes I write truly small projects during my free time, and a setup that takes " zero seconds " with still a visual result of my tests could be all I need. Also for my personal projects I rarely need a massive logic behind the UT framework ... simple things are often better, but I will explain why afterwards. Look, if you refresh, it changes! What I have learned from Christian while I was editing his book code is that order should not matter . In my opinion there are cases where order could matter, specially when ...