Skip to content
Newer
Older
100644 49 lines (31 sloc) 962 Bytes
e149bd0 Basic Readme file
Joel Plane authored Jun 18, 2011
1 TestNode
2 ========
3
4 A testing library/framework for Node.js
5
6 TestNode aims to be unobtrusive and unassuming about the environment
7 in which it will run. That's the goal - we will no-doubt fall short
8 of this goal somewhere, but we'll try our best.
9
10 It's a BDD-esc library in it's syntax, but that's about as far as it
11 goes in terms of BDD.
12
13 Example
14 -------
15
16 **Basic Syntax**:
17
18 var test = require('testnode')();
19 test.onFailureExitNonZero();
20
21 test.context("Example Test Suite", function() {
22 this.context("Example Sub-Context", function() {
23 this.it("Basic Test Example", function(test) {
24 test.assert(true);
25 test.done();
26 });
27 });
28 });
29
30 **Executing tests**:
31
32 node examples/basicTest.js
33
34 OR *coming soon*:
35
36 testnode testsDirectory
37
38 See the examples directory for more examples.
39
40 Installation
41 ------------
42
43 Install with npm:
44
45 npm install testnode
46
47 More doco coming soon :)
48
Something went wrong with that request. Please try again.