Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

markdown reporter

TJ Holowaychuk5859598e9d0e
diff --git a/index.html b/index.html
index edba6f52..12641049 100644
--- a/index.html
+++ b/index.html
@@ -169,30 +169,30 @@
<h2>mocha(1)</h2>
-<p> Usage: mocha [debug] [options] [files]</p>
-
-<p> Options:</p>
-
-<pre><code> -h, --help output usage information
- -V, --version output the version number
- -r, --require &lt;name&gt; require the given module
- -R, --reporter &lt;name&gt; specify the reporter to use
- -u, --ui &lt;name&gt; specify user-interface (bdd|tdd|exports)
- -g, --grep &lt;pattern&gt; only run tests matching &lt;pattern&gt;
- -t, --timeout &lt;ms&gt; set test-case timeout in milliseconds [2000]
- -s, --slow &lt;ms&gt; "slow" test threshold in milliseconds [75]
- -w, --watch watch files for changes
- -c, --colors force enabling of colors
- -C, --no-colors force disabling of colors
- -G, --growl enable growl notification support
- -d, --debug enable node's debugger, synonym for node --debug
- -b, --bail bail after first test failure
- --debug-brk enable node's debugger breaking on the first line
- --globals &lt;names&gt; allow the given comma-delimited global [names]
- --ignore-leaks ignore global variable leaks
- --interfaces display available interfaces
- --reporters display available reporters
- --compilers &lt;ext&gt;:&lt;module&gt;,... use the given module(s) to compile files
+<pre><code> Usage: mocha [debug] [options] [files]
+
+ Options:
+
+ -h, --help output usage information
+ -V, --version output the version number
+ -r, --require &lt;name&gt; require the given module
+ -R, --reporter &lt;name&gt; specify the reporter to use
+ -u, --ui &lt;name&gt; specify user-interface (bdd|tdd|exports)
+ -g, --grep &lt;pattern&gt; only run tests matching &lt;pattern&gt;
+ -t, --timeout &lt;ms&gt; set test-case timeout in milliseconds [2000]
+ -s, --slow &lt;ms&gt; "slow" test threshold in milliseconds [75]
+ -w, --watch watch files for changes
+ -c, --colors force enabling of colors
+ -C, --no-colors force disabling of colors
+ -G, --growl enable growl notification support
+ -d, --debug enable node's debugger, synonym for node --debug
+ -b, --bail bail after first test failure
+ --debug-brk enable node's debugger breaking on the first line
+ --globals &lt;names&gt; allow the given comma-delimited global [names]
+ --ignore-leaks ignore global variable leaks
+ --interfaces display available interfaces
+ --reporters display available reporters
+ --compilers &lt;ext&gt;:&lt;module&gt;,... use the given module(s) to compile files
</code></pre>
<h3>-w, &ndash;watch</h3>
diff --git a/index.md b/index.md
index 155ac37d..b6fc3454 100644
--- a/index.md
+++ b/index.md
@@ -387,6 +387,13 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
![code coverage reporting](http://f.cl.ly/items/3T3G1h1d3Z2i3M3Y1Y0Y/Screen%20Shot%202012-02-23%20at%208.37.13%20PM.png)
+### Markdown
+
+ The "markdown" reporter generates a markdown TOC and body for your
+ test suite. This is great if you want to use the tests as documentation
+ within a Github wiki page, or a markdown file in the repository that
+ Github can render. For example here is the Connect [test output](https://github.com/senchalabs/connect/blob/90a725343c2945aaee637e799b1cd11e065b2bff/tests.md).
+
### Doc
The "doc" reporter outputs a hierarchical HTML body representation