mocha 1.21.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +226 -0
  2. package/bin/_mocha +26 -47
  3. package/bin/mocha +8 -1
  4. package/index.js +1 -2
  5. package/lib/browser/debug.js +0 -1
  6. package/lib/browser/diff.js +16 -1
  7. package/lib/browser/escape-string-regexp.js +11 -0
  8. package/lib/browser/events.js +1 -2
  9. package/lib/browser/glob.js +0 -0
  10. package/lib/browser/progress.js +6 -6
  11. package/lib/browser/tty.js +0 -1
  12. package/lib/context.js +0 -1
  13. package/lib/hook.js +0 -1
  14. package/lib/interfaces/bdd.js +4 -4
  15. package/lib/interfaces/exports.js +1 -2
  16. package/lib/interfaces/index.js +0 -1
  17. package/lib/interfaces/qunit.js +2 -2
  18. package/lib/interfaces/tdd.js +4 -4
  19. package/lib/mocha.js +32 -9
  20. package/lib/ms.js +1 -1
  21. package/lib/reporters/base.js +11 -13
  22. package/lib/reporters/doc.js +0 -1
  23. package/lib/reporters/dot.js +0 -1
  24. package/lib/reporters/html-cov.js +1 -2
  25. package/lib/reporters/html.js +13 -5
  26. package/lib/reporters/index.js +0 -1
  27. package/lib/reporters/json-cov.js +1 -2
  28. package/lib/reporters/json-stream.js +4 -3
  29. package/lib/reporters/json.js +7 -2
  30. package/lib/reporters/landing.js +3 -4
  31. package/lib/reporters/list.js +0 -1
  32. package/lib/reporters/markdown.js +15 -6
  33. package/lib/reporters/min.js +0 -1
  34. package/lib/reporters/nyan.js +14 -14
  35. package/lib/reporters/spec.js +0 -1
  36. package/lib/reporters/tap.js +0 -1
  37. package/lib/reporters/templates/coverage.jade +2 -1
  38. package/lib/reporters/templates/style.html +1 -1
  39. package/lib/reporters/xunit.js +41 -10
  40. package/lib/runnable.js +8 -6
  41. package/lib/runner.js +17 -9
  42. package/lib/suite.js +3 -3
  43. package/lib/test.js +0 -1
  44. package/lib/utils.js +247 -49
  45. package/mocha.js +487 -172
  46. package/package.json +20 -13
  47. package/Readme.md +0 -203
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocha",
3
- "version": "1.21.4",
3
+ "version": "2.1.0",
4
4
  "description": "simple, flexible, fun test framework",
5
5
  "keywords": [
6
6
  "mocha",
@@ -17,12 +17,18 @@
17
17
  "Christopher Hiller <chiller@badwing.com>",
18
18
  "Travis Jeffery <tj@travisjeffery.com>",
19
19
  "Johnathan Ong <me@jongleberry.com>",
20
- "Guillermo Rauch <rauchg@gmail.com>"
20
+ "Guillermo Rauch <rauchg@gmail.com>",
21
+ "Nathan Rajlich <nathan@tootallnate.net>"
21
22
  ],
22
23
  "repository": {
23
24
  "type": "git",
24
- "url": "git://github.com/visionmedia/mocha.git"
25
+ "url": "git://github.com/mochajs/mocha.git"
25
26
  },
27
+ "maintainers": [
28
+ "travisjeffery <tj@travisjeffery.com>",
29
+ "jbnicolai <joshua@jbna.nl>",
30
+ "boneskull <chiller@badwing.com>"
31
+ ],
26
32
  "main": "./index",
27
33
  "browser": "./mocha.js",
28
34
  "bin": {
@@ -30,22 +36,23 @@
30
36
  "_mocha": "./bin/_mocha"
31
37
  },
32
38
  "engines": {
33
- "node": ">= 0.4.x"
39
+ "node": ">= 0.8.x"
34
40
  },
35
41
  "scripts": {
36
42
  "test": "make test-all"
37
43
  },
38
44
  "dependencies": {
39
- "commander": "2.0.0",
40
- "growl": "1.8.x",
45
+ "commander": "2.3.0",
46
+ "debug": "2.0.0",
47
+ "diff": "1.0.8",
48
+ "escape-string-regexp": "1.0.2",
49
+ "glob": "3.2.3",
50
+ "growl": "1.8.1",
41
51
  "jade": "0.26.3",
42
- "diff": "1.0.7",
43
- "debug": "*",
44
- "mkdirp": "0.3.5",
45
- "glob": "3.2.3"
52
+ "mkdirp": "0.5.0"
46
53
  },
47
54
  "devDependencies": {
48
- "coffee-script": "~1.7.1",
55
+ "coffee-script": "~1.8.0",
49
56
  "should": "~4.0.0"
50
57
  },
51
58
  "files": [
@@ -60,7 +67,7 @@
60
67
  "licenses": [
61
68
  {
62
69
  "type": "MIT",
63
- "url": "https://raw.github.com/visionmedia/mocha/master/LICENSE"
70
+ "url": "https://raw.github.com/mochajs/mocha/master/LICENSE"
64
71
  }
65
72
  ]
66
- }
73
+ }
package/Readme.md DELETED
@@ -1,203 +0,0 @@
1
- [![Build Status](https://secure.travis-ci.org/visionmedia/mocha.png)](http://travis-ci.org/visionmedia/mocha)
2
-
3
- [![Mocha test framework](http://f.cl.ly/items/3l1k0n2A1U3M1I1L210p/Screen%20Shot%202012-02-24%20at%202.21.43%20PM.png)](http://visionmedia.github.io/mocha)
4
-
5
- Mocha is a simple, flexible, fun JavaScript test framework for node.js and the browser. For more information view the [documentation](http://visionmedia.github.io/mocha).
6
-
7
- ## Contributors
8
-
9
- ```
10
-
11
- project : mocha
12
- repo age : 2 years, 11 months
13
- active : 433 days
14
- commits : 1424
15
- files : 143
16
- authors :
17
- 588 TJ Holowaychuk 41.3%
18
- 389 Tj Holowaychuk 27.3%
19
- 98 Travis Jeffery 6.9%
20
- 31 Guillermo Rauch 2.2%
21
- 13 Attila Domokos 0.9%
22
- 10 John Firebaugh 0.7%
23
- 8 Jo Liss 0.6%
24
- 7 Joshua Appelman 0.5%
25
- 7 Nathan Rajlich 0.5%
26
- 6 Brendan Nee 0.4%
27
- 6 James Carr 0.4%
28
- 6 Mike Pennisi 0.4%
29
- 5 Raynos 0.4%
30
- 5 Aaron Heckmann 0.4%
31
- 5 Ryunosuke SATO 0.4%
32
- 4 Forbes Lindesay 0.3%
33
- 4 Domenic Denicola 0.3%
34
- 4 Xavier Antoviaque 0.3%
35
- 4 hokaccha 0.3%
36
- 4 Jonathan Ong 0.3%
37
- 4 Joshua Krall 0.3%
38
- 3 Ben Lindsey 0.2%
39
- 3 Benjie Gillam 0.2%
40
- 3 Fredrik Enestad 0.2%
41
- 3 Sindre Sorhus 0.2%
42
- 3 Cory Thomas 0.2%
43
- 3 Mathieu Desvé 0.2%
44
- 3 Tyson Tate 0.2%
45
- 3 Valentin Agachi 0.2%
46
- 3 Wil Moore III 0.2%
47
- 3 Jesse Dailey 0.2%
48
- 3 Merrick Christensen 0.2%
49
- 3 eiji.ienaga 0.2%
50
- 3 fool2fish 0.2%
51
- 3 Nathan Bowser 0.2%
52
- 3 Paul Miller 0.2%
53
- 2 FARKAS Máté 0.1%
54
- 2 Shawn Krisman 0.1%
55
- 2 Jacob Wejendorp 0.1%
56
- 2 Jonas Westerlund 0.1%
57
- 2 Paul Armstrong 0.1%
58
- 2 Konstantin Käfer 0.1%
59
- 2 Michael Riley 0.1%
60
- 2 Michael Schoonmaker 0.1%
61
- 2 Andreas Lind Petersen 0.1%
62
- 2 domenic 0.1%
63
- 2 Quang Van 0.1%
64
- 2 fcrisci 0.1%
65
- 2 Nathan Alderson 0.1%
66
- 2 travis jeffery 0.1%
67
- 2 Juzer Ali 0.1%
68
- 2 Pete Hawkins 0.1%
69
- 2 Justin DuJardin 0.1%
70
- 2 David Henderson 0.1%
71
- 2 jsdevel 0.1%
72
- 2 Timo Tijhof 0.1%
73
- 2 Brian Beck 0.1%
74
- 2 Simon Gaeremynck 0.1%
75
- 2 Ian Storm Taylor 0.1%
76
- 2 Arian Stolwijk 0.1%
77
- 2 Alexander Early 0.1%
78
- 2 Ben Bradley 0.1%
79
- 2 Glen Mailer 0.1%
80
- 1 Maciej Małecki 0.1%
81
- 1 Mal Graty 0.1%
82
- 1 Marc Kuo 0.1%
83
- 1 Matija Marohnić 0.1%
84
- 1 Matt Robenolt 0.1%
85
- 1 Matt Smith 0.1%
86
- 1 Matthew Shanley 0.1%
87
- 1 Mattias Tidlund 0.1%
88
- 1 Michael Jackson 0.1%
89
- 1 Nathan Black 0.1%
90
- 1 Nick Fitzgerald 0.1%
91
- 1 Noshir Patel 0.1%
92
- 1 Panu Horsmalahti 0.1%
93
- 1 Phil Sung 0.1%
94
- 1 R56 0.1%
95
- 1 Refael Ackermann 0.1%
96
- 1 Richard Dingwall 0.1%
97
- 1 Romain Prieto 0.1%
98
- 1 Roman Neuhauser 0.1%
99
- 1 Roman Shtylman 0.1%
100
- 1 Russ Bradberry 0.1%
101
- 1 Russell Munson 0.1%
102
- 1 Rustem Mustafin 0.1%
103
- 1 Salehen Shovon Rahman 0.1%
104
- 1 Sasha Koss 0.1%
105
- 1 Seiya Konno 0.1%
106
- 1 Shaine Hatch 0.1%
107
- 1 Simon Goumaz 0.1%
108
- 1 Standa Opichal 0.1%
109
- 1 Stephen Mathieson 0.1%
110
- 1 Steve Mason 0.1%
111
- 1 Tapiwa Kelvin 0.1%
112
- 1 Teddy Zeenny 0.1%
113
- 1 Tim Ehat 0.1%
114
- 1 Vadim Nikitin 0.1%
115
- 1 Victor Costan 0.1%
116
- 1 Will Langstroth 0.1%
117
- 1 Yanis Wang 0.1%
118
- 1 Yuest Wang 0.1%
119
- 1 Zsolt Takács 0.1%
120
- 1 abrkn 0.1%
121
- 1 airportyh 0.1%
122
- 1 badunk 0.1%
123
- 1 claudyus 0.1%
124
- 1 fengmk2 0.1%
125
- 1 gaye 0.1%
126
- 1 grasGendarme 0.1%
127
- 1 lakmeer 0.1%
128
- 1 lodr 0.1%
129
- 1 qiuzuhui 0.1%
130
- 1 sebv 0.1%
131
- 1 tgautier@yahoo.com 0.1%
132
- 1 traleig1 0.1%
133
- 1 vlad 0.1%
134
- 1 yuitest 0.1%
135
- 1 Adam Crabtree 0.1%
136
- 1 Andreas Brekken 0.1%
137
- 1 Andrew Nesbitt 0.1%
138
- 1 Andrey Popp 0.1%
139
- 1 Arnaud Brousseau 0.1%
140
- 1 Atsuya Takagi 0.1%
141
- 1 Austin Birch 0.1%
142
- 1 Ben Noordhuis 0.1%
143
- 1 Bjørge Næss 0.1%
144
- 1 Brian Lalor 0.1%
145
- 1 Brian M. Carlson 0.1%
146
- 1 Brian Moore 0.1%
147
- 1 Bryan Donovan 0.1%
148
- 1 Casey Foster 0.1%
149
- 1 ChrisWren 0.1%
150
- 1 Christopher Hiller 0.1%
151
- 1 Corey Butler 0.1%
152
- 1 Daniel Stockman 0.1%
153
- 1 Dave McKenna 0.1%
154
- 1 Denis Bardadym 0.1%
155
- 1 Devin Weaver 0.1%
156
- 1 Di Wu 0.1%
157
- 1 Dmitry Shirokov 0.1%
158
- 1 Fedor Indutny 0.1%
159
- 1 Florian Margaine 0.1%
160
- 1 Frederico Silva 0.1%
161
- 1 Fredrik Lindin 0.1%
162
- 1 Gareth Aye 0.1%
163
- 1 Gareth Murphy 0.1%
164
- 1 Gavin Mogan 0.1%
165
- 1 Giovanni Bassi 0.1%
166
- 1 Glen Huang 0.1%
167
- 1 Greg Perkins 0.1%
168
- 1 Harish 0.1%
169
- 1 Harry Brundage 0.1%
170
- 1 Herman Junge 0.1%
171
- 1 Ian Young 0.1%
172
- 1 Ivan 0.1%
173
- 1 JP Bochi 0.1%
174
- 1 Jaakko Salonen 0.1%
175
- 1 Jakub Nešetřil 0.1%
176
- 1 James Bowes 0.1%
177
- 1 James Lal 0.1%
178
- 1 Jan Kopriva 0.1%
179
- 1 Jason Barry 0.1%
180
- 1 Javier Aranda 0.1%
181
- 1 Jean Ponchon 0.1%
182
- 1 Jeff Kunkle 0.1%
183
- 1 Jeremy Martin 0.1%
184
- 1 Jimmy Cuadra 0.1%
185
- 1 John Doty 0.1%
186
- 1 Jonathan Creamer 0.1%
187
- 1 Jonathan Park 0.1%
188
- 1 Jussi Virtanen 0.1%
189
- 1 Katie Gengler 0.1%
190
- 1 Kazuhito Hokamura 0.1%
191
- 1 Kirill Korolyov 0.1%
192
- 1 Koen Punt 0.1%
193
- 1 Laszlo Bacsi 0.1%
194
- 1 Liam Newman 0.1%
195
- 1 Linus Unnebäck 0.1%
196
- 1 László Bácsi 0.1%
197
- ```
198
-
199
- ## Links
200
-
201
- - [Google Group](http://groups.google.com/group/mochajs)
202
- - [Wiki](https://github.com/visionmedia/mocha/wiki)
203
- - Mocha [Extensions and reporters](https://github.com/visionmedia/mocha/wiki)