November 26th in Unit Testing by . no comment .

How Unit Testing Helped Me Slash a Nasty Bug

To make a library ready for production, you need to write unit tests that cover all the core functionalities of the library. Then you will need to establish a means to automatically run those unit tests in different target environments. Only when a library passes all unit tests in all …

Continue Reading
October 11th in Unit Testing by . no comment .

Unit Testing with JavaScript — Part 4: Automation

Now that we know unit testing best practices; and we have a o2.Unit test runner to do assertions, run and report our test suites; and we know how to construct test suites to be used in this test suite runner; it’s time to develop a methodology that’ll enable us execute …

Continue Reading
September 20th in Unit Testing by . no comment .

Unit Testing with JavaScript — Part 3: Getting Your Feet Wet

As developers with tight deadlines, we constantly feel overwhelmed; and as more pressure comes upon us, we tend to cut corners and start creating code that no one but God will even God himself cannot understand . In the former article we created a unit test runner to run a …

Continue Reading
September 18th in Unit Testing by . no comment .

Unit Testing with JavaScript — Part 2: Preparation

In the previous article, we’ve seen what a unit test is, and we’ve learned the best practices to write a proper unit test suite. Now it’s time to get our hands dirty . In this tutorial, we will create a unit test runner. Navigation This is Part 2 of a …

Continue Reading
September 16th in Unit Testing by . 8 comments .

Unit Testing with JavaScript — Part 1: Best Practices

Despite the fact that unit testing can add considerable value to the quality of your code, it can do more harm than good, on the long run, if you do not implement it correctly. It all depends on the quality of the tests you design. And it, in turn, depends …

Continue Reading
o2.js _
Fork Ribbon