summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Ege Ronnenberg <jon.ronnenberg@gmail.com>2016-10-17 20:57:11 -0200
committerGitHub <noreply@github.com>2016-10-17 20:57:11 -0200
commitf0c5ca2f72c1c8129390d00ff46a963f073c8986 (patch)
tree2ffb4285d1986f3f73b9fdb286d7c5e64012e4e8
parent4423a8c9a7bdad4cc30bfe0458b5fc5a0fead634 (diff)
downloadsvg.js-f0c5ca2f72c1c8129390d00ff46a963f073c8986.tar.gz
svg.js-f0c5ca2f72c1c8129390d00ff46a963f073c8986.zip
Fix Build and Test section
Fix command to build and added a small section about testing
-rw-r--r--README.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index c5587ae..094078d 100644
--- a/README.md
+++ b/README.md
@@ -4072,7 +4072,7 @@ $ npm install
Build SVG.js by running `gulp`:
``` sh
-$ npm test
+$ npm run build
```
The resulting files are:
@@ -4080,6 +4080,16 @@ The resulting files are:
1. `dist/svg.js`
2. `dist/svg.min.js`
+## Testing
+There is two ways to run the test suite. One is from the command line and the other is in your browser.
+To run the test suit at the command line, you need to have Firefox installed.
+
+```sh
+$ npm test
+```
+
+To run the test suite in your browser, you need to serve the root project folder with an HTTP server like [ecstatic](https://github.com/jfhbrook/node-ecstatic) or [Apache](https://httpd.apache.org/).
+Navigate to `/spec/SpecRunner.htm` to run the tests.
## Compatibility