Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Doctest.js - A Humane JavaScript Test Framework

DZone's Guide to

Doctest.js - A Humane JavaScript Test Framework

· Web Dev Zone
Free Resource

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

Doctest.js is a test runner and testing framework for JavaScript.  Doctest uses a novel approach to testing: example and expected result. Each test is a chunk of code that prints out results and side effects, and then the expected result is matched against that to see if the test passed or failed.

Doctest is based on the Python doctest module originally written by Tim Peters. Spy was inspired some by Jasmine's Spy class, and carries over ideas from MiniMock.  If you've used Python's doctest and found it annoying or not widely useful for doctest: doctest.js fixes all those problems.

Requirements: None
Demo: http:/ / doctestjs. org/
License: MIT License

 

 

 

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:

Published at DZone with permission of Hirvesh Munogee, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}