-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
37 lines (33 loc) · 1.31 KB
/
README.txt
File metadata and controls
37 lines (33 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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.