Testing Inside VS Code with Mocha (Video)

09-09-20 Rob Tarr

Learn to run one-off tests and debug inside your editor to keep your feedback loop as tight as possible.

I think we can all agree that quickly seeing if tests are passing or not makes test-driven development possible, and being able to easily run those tests is key. Sure, I can run my tests in the command line, but sometimes being able to see the test status right in my editor makes the process much simpler. Shortening the feedback loop is always a good idea. Being able to run one-off tests and debug them where I’m already working helps to keep the loop as tight as possible.

Let’s look at using the Test UI Explorer with Mocha to see how we can run and see tests alongside the code inside VS Code.

Sparkbox’s Development Capabilities Assessment

Ship better code more often. Answer just a few simple questions so we can provide you with a custom report that gives your development organization direction on improving your practices.