August 10, 2016
Wallaby is an incredible tool. "wallaby.js runs your code as you write it." It can be used with a variety of editors, namely Sublime Text, Atom, Visual Studio Code, Visual Studio Standard, and IntelliJ. The great thing about Wallaby is that it puts line pass/fail markers in the gutter of your editor and runs your tests on every keystroke. It's kind of hard to describe. But if you see it, you may understand. It is transformational. Every keystroke, your code runs, and you're alerted if it's valid or not, and if not, what the error is. No more questions of "will this code run?" You know, every keystroke, if what you wrote will run or not.
Mocha - "The simple, flexible, and fun testing framework." This tool is mainly used as the test runner. It has a great set of defaults, which means the no config OOTB is pretty great. It has a debug version, _mocha, which allows you to debug your tests. With Visual Studio Code you can write and debug your tests with breakpoints in the IDE.
Intern / Chimp
Intern / Chimp are two testing meta-frameworks. What is a meta-framework you ask? Testing meta-frameworks are tools that combine other tools and testing frameworks into a more coherent and cohesive package. If you aren't very well experienced with testing tools, these all-in-one meta-frameworks help you get Selenium, PhantomJS, Mocha, etc... setup easily. Chimp is my personal favorite. The guy who runs it is fantastic.
What do you use for unit testing?