forked from josephg/ShareJS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.coffee
More file actions
42 lines (32 loc) · 725 Bytes
/
tests.coffee
File metadata and controls
42 lines (32 loc) · 725 Bytes
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
38
39
40
41
# This runs all the tests.
#
# run with:
# % nodeunit tests.coffee
modules = [
'testhelpers'
'version'
'types/count'
'types/text'
'types/text-composable'
'types/text-tp2'
'types/text-api'
'types/json'
'types/json-api'
'db'
'model'
'useragent'
'events'
'rest'
# 'socketio'
'browserchannel'
'microevent'
'client'
# These tests are currently flakey.
# 'integration'
]
exports[module] = require "./test/#{module}" for module in modules
# This is a little hack to get around the lack of cleanup done by socket.io. It should terminate
# the node.js process 2 seconds after all the tests are complete.
exports.cleanup = (test) ->
test.done()
setTimeout (-> process.exit(0)), 2000