Skip to content
Browse files

update with information on running tests

  • Loading branch information...
1 parent 4ca723b commit ae4075e91cf3ae8674af26bf40f8693a2ba0268e @trevnorris trevnorris committed Mar 19, 2012
Showing with 9 additions and 8 deletions.
  1. +2 −0 Makefile
  2. +7 −8 README.md
View
2 Makefile
@@ -39,6 +39,8 @@ doc:
$(JS_ENGINE) $(BUILD_DIR)/doctool.js $(DOC_DIR)/assets/template.html $(DOC_DIR)/md/$${i} $(DIST_DIR)/docs/$${i%.*}.html; \
done
+jstat: jstat.js
+
install:
@echo 'Downloading necessary libraries for build'
@mkdir -p node_modules
View
15 README.md
@@ -35,9 +35,9 @@ Building jStat
First, clone a copy of the jStat git repo by running `git clone git://github.com/jstat/jstat.git`.
-Then, to get a complete, minified, jslinted version of jStat, simply `cd` to the `jstat` directory and type
-`make`. If you don't have Node installed and/or want to make a basic, uncompressed, unlinted version of jstat, use
-`make jstat` instead of `make`.
+Then, to get a complete, minified version of jStat and all documentation, simply `cd` to the `jstat` directory and
+type `make`. If you don't have Node installed and/or want to make a basic, uncompressed, unlinted version of jstat,
+use `make jstat` instead of `make`.
The built version of jStat will be put in the `dist/` subdirectory.
@@ -46,10 +46,9 @@ Generate just the documentation by running `make doc`. Documentation will be pla
To remove all built files, run `make clean`.
-Building to a different directory
----------------------------------
+Running Tests
+-------------
-If you want to build jStat to a directory that is different from the default location, you can specify the PREFIX
-directory: `make PREFIX=/home/jstat/test/ [command]`
+Execute all tests by running `make test`.
-With this example, the output files would end up in `/home/jstat/test/dist/`.
+Or if you with to run a specific test, `cd` to `test/<subdir>` and run `node <some_test>-test.js`.

0 comments on commit ae4075e

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