Skip to content
Browse files

Small updates for docs

  • Loading branch information...
1 parent b6a7048 commit c1ca7604287795f5e06e3e02a329af46979adb4a nzakas committed Feb 14, 2011
Showing with 18 additions and 1 deletion.
  1. +2 −1 docs/index.html
  2. +16 −0 docs/nodejs.html
View
3 docs/index.html
@@ -27,9 +27,10 @@
<li><a href="selenium-driver.html">YUI Test Selenium Driver</a> - automates running of YUI Test pages in browsers through integration with <a href="http://www.seleniumhq.org">Selenium</a>. Also, integrates with YUI Test Coverage.</li>
</ul>
- <h3>Best Practices</h3>
+ <h3>User Guides</h3>
<ul>
<li><a href="test-file-approach.html">Test File Approach</a> - how to organize and format your test files.</li>
+ <li><a href="nodejs.html">YUI Test on Node.js</a> - how to use YUI Test on the command line with Node.js.</li>
</ul>
</div>
</div>
View
16 docs/nodejs.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>YUI Test</title>
+ <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.2.0/build/cssfonts/fonts-min.css">
+</head>
+<body>
+ <h1>Using with Node.js</h1>
+ <p>The YUI Test standalone library is fully capable of being run on Node.js.</p>
+ <h2>Install with npm</h2>
+ <p>If you're using <a href="http://npmjs.org">npm</a>, you can install the command line interface via:</p>
+ <pre><code>npm install yuitest</code></pre>
+ <p>Once installed, you can pass both individual JavaScript files and entire directories on the command line. If a directory is entered on the command line, all JavaScript files in that directory are assumed to contain tests. This also searches the directory recursively to find all JavaScript files in all subdirectories.</p>
+
+</body>
+</html>

0 comments on commit c1ca760

Please sign in to comment.
Something went wrong with that request. Please try again.