Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
chore(package): npm start now brings up the testapp
Browse files Browse the repository at this point in the history
Closes #712
  • Loading branch information
juliemr committed Apr 15, 2014
1 parent 74761e8 commit 6f31b56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ Start up a selenium server. By default, the tests expect the selenium server to

Protractor's test suite runs against the included testapp. Start that up with

cd testapp
./scripts/web-server.js
npm start

Then run the tests with

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
},
"main": "lib/protractor.js",
"scripts": {
"test": "scripts/test.js"
"test": "scripts/test.js",
"start": "testapp/scripts/web-server.js"
},
"license": "MIT",
"version": "0.21.0",
Expand Down
2 changes: 1 addition & 1 deletion testapp/scripts/web-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var express = require('express');
var util = require('util');
var testApp = express();
var DEFAULT_PORT = process.env.HTTP_PORT || 8000;
var testAppDir = process.cwd();
var testAppDir = require('path').resolve(__dirname, '..');

var main = function(argv) {
var port = Number(argv[2]) || DEFAULT_PORT;
Expand Down

0 comments on commit 6f31b56

Please sign in to comment.