Trying to write this as a 2007 blog post: personal, not so politically correct. (I’m not involved in JS politics by the way)
Just like everything in the JavaScript world, there are 100s of different testing utilities to…
When asked about testing front end code, I’d usually reply with something like “I haven’t found the right tool and approach yet”, but maybe that’s because I wasn’t really looking. After searching around for a while I found QUnit and really liked how easy…
Tests are absolutely a must. Without tests, it is not possible to evolve software.
Originally written on samueleresca.net
Wallaby.js is insanely fast…
So you’ve written…
When writing JavaScript applications or websites a lot of developers write unit tests to ensure the code does what it is supposed to do. The hottest code uses ES6 and transpiles to ES5 with Babel. Mocha is pretty popular as a…
Testing async code with Mocha using callbacks is pretty straight forward, all you need to do is pass the done function down the callback chain and ensure it is executed after your last assertion:
Unit testing, it sounds nice, doesn’t it? But what is it? And how do you do it?
Testing provides checkpoints for your project to reach, exceed and look back on. While it’s tempting to think that it’s there only to catch bugs, that’s actually not really the case. The tests are written by humans who are just as fallible as those who…