From 75d5016c1f05330a36b01209f837cb3a3614d494 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Thu, 22 Oct 2015 11:22:52 +0200 Subject: [PATCH 1/2] Minor changes README#Tests. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ada00a7..1d16dcb 100644 --- a/README.md +++ b/README.md @@ -219,8 +219,8 @@ Error: this is a demo This repo contains both automated tests for node and manual tests for the browser. The automated tests can be run using mocha (type `mocha` in the root directory). To run the manual tests: * Build the tests using `build.js` -* Visit `amd-test`, `browser-test`, and `browserify-test` using the HTTP protocol (`python -m SimpleHTTPServer` can be used on OS X) - * The test `browserify-test` currently isn't working due to a bug with browserify. See pull request #66 for details. +* Visit `amd-test`, `browser-test`, and `browserify-test` using the HTTP protocol (try `python -m SimpleHTTPServer` or use [http-server](https://www.npmjs.com/package/http-server)) + * The test `browserify-test` currently isn't working due to a bug with browserify. See pull request [#66](https://github.com/evanw/node-source-map-support/pull/66) for details. * For `header-test`, run `server.js` inside that directory and visit http://127.0.0.1:1337/ ## License From ab6b4cf103b56cd3a4b1a5b8a174e9439b9a1014 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Thu, 22 Oct 2015 14:43:12 +0200 Subject: [PATCH 2/2] Add serve-test npm script. --- README.md | 6 ++++-- package.json | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1d16dcb..8e2d2c9 100644 --- a/README.md +++ b/README.md @@ -219,8 +219,10 @@ Error: this is a demo This repo contains both automated tests for node and manual tests for the browser. The automated tests can be run using mocha (type `mocha` in the root directory). To run the manual tests: * Build the tests using `build.js` -* Visit `amd-test`, `browser-test`, and `browserify-test` using the HTTP protocol (try `python -m SimpleHTTPServer` or use [http-server](https://www.npmjs.com/package/http-server)) - * The test `browserify-test` currently isn't working due to a bug with browserify. See pull request [#66](https://github.com/evanw/node-source-map-support/pull/66) for details. +* Launch the HTTP server (`npm run serve-tests`) and visit + * http://127.0.0.1:1336/amd-test + * http://127.0.0.1:1336/browser-test + * http://127.0.0.1:1336/browserify-test - **Currently not working** due to a bug with browserify (see [pull request #66](https://github.com/evanw/node-source-map-support/pull/66) for details). * For `header-test`, run `server.js` inside that directory and visit http://127.0.0.1:1337/ ## License diff --git a/package.json b/package.json index 9d17a45..6200f0a 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,16 @@ "main": "./source-map-support.js", "scripts": { "build": "node build.js", + "serve-tests": "http-server -p 1336", "test": "mocha" }, "dependencies": { "source-map": "0.1.32" }, "devDependencies": { - "coffee-script": "1.7.1", "browserify": "3.44.2", + "coffee-script": "1.7.1", + "http-server": "^0.8.5", "mocha": "1.18.2" }, "repository": {