diff options
author | Jon Ege Ronnenberg <jon.ronnenberg@gmail.com> | 2016-10-17 20:57:11 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 20:57:11 -0200 |
commit | f0c5ca2f72c1c8129390d00ff46a963f073c8986 (patch) | |
tree | 2ffb4285d1986f3f73b9fdb286d7c5e64012e4e8 /README.md | |
parent | 4423a8c9a7bdad4cc30bfe0458b5fc5a0fead634 (diff) | |
download | svg.js-f0c5ca2f72c1c8129390d00ff46a963f073c8986.tar.gz svg.js-f0c5ca2f72c1c8129390d00ff46a963f073c8986.zip |
Fix Build and Test section
Fix command to build and added a small section about testing
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |