-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed specs.js, as it seems superceded by cli.js.
- Loading branch information
1 parent
bd184f6
commit 36669d8
Showing
2 changed files
with
17 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
jasmine-node | ||
====== | ||
|
||
This node.js module makes the wonderful Pivotal Lab's jasmine (http://github.com/pivotal/jasmine) spec framework available in node.js. | ||
This node.js module makes the wonderful Pivotal Lab's jasmine | ||
(http://github.com/pivotal/jasmine) spec framework available in | ||
node.js. | ||
|
||
usage | ||
------ | ||
|
||
Write the specifications for your code in *.js and *.coffee files in the spec/ directory. You can use sub-directories to better organise your specs. | ||
Write the specifications for your code in *.js and *.coffee files in | ||
the spec/ directory. You can use sub-directories to better organise | ||
your specs. | ||
|
||
Run the specifications using: | ||
If you have installed the npm package, you can run it with: | ||
|
||
jasmine-node | ||
|
||
If you aren't using npm, you should add `pwd`/lib to the $NODE_PATH | ||
environment variable, then run: | ||
|
||
node lib/jasmine-node/cli.js | ||
|
||
node specs.js | ||
|
||
You can supply the following arguments: | ||
|
||
* <code>--color</code>, indicates spec output should uses color to indicates passing (green) or failing (red) specs | ||
* <code>--color</code>, indicates spec output should uses color to | ||
indicates passing (green) or failing (red) specs | ||
* <code>--noColor</code>, do not use color in the output | ||
* <code>--verbose</code>, verbose output as the specs are run | ||
|
||
Checkout specs.js in the root directory and spec/SampleSpecs.js to see how to use it. | ||
Checkout spec/SampleSpecs.js to see how to use it. |