Skip to content

Dojo Object Harness 2 - a javascript unit testing environment based on D.O.H

License

Notifications You must be signed in to change notification settings

wolframkriesing/doh2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

889d9cd · Jan 19, 2011

History

14 Commits
Aug 11, 2009
Jan 19, 2011
Aug 9, 2009
Jan 19, 2011
Aug 9, 2009
Aug 11, 2009
Aug 9, 2009
Aug 12, 2009
Aug 11, 2009
Aug 12, 2009
Aug 9, 2009
Aug 9, 2009

Repository files navigation

Dojo Object Harness v2
======================

History
-------
I was on the search for a JavaScript unit testing package,
and kind of by accident (LOL) I stumbled across DOH, the
actual dojo object harness, contained in dojo (at least currently).
I started happily using it, but as you know it always comes
one thing and then another which you need. So I started
adding and adding and felt that the (old) doh was just
not flexible enough and had some drawbacks. Therefore
I pulled out the best pieces and glued it back together
and out came this.

Features
--------
The features the (old) doh provides and doh2 does too:
* asynchronous tests 
* assert functions

Features doh2 added or fixed
* streamlined synch and asynch test writing, no notable difference
  for the test writer anymore - much easier
* no need to know about doh.Deferred anymore, it's all wrapped
  in the test object passed to the test function, just use assert*()
  everywhere
* make doh.pause() work again
* doh.pause() can also be used inside a test to stop
  the test run from within a test
* allow returning values, such as test results for the good case
* namespaced all doh functionalities, and separated them into multiple files
  doh, doh.assert, doh.util, doh.Deferred

Examples
--------
See the file "selftests.js" it provides tests with extensive explaination.

About

Dojo Object Harness 2 - a javascript unit testing environment based on D.O.H

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published