Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add npm test #28

Merged
merged 3 commits into from
Jan 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# stratos-ui

## Pre-requisite
If running on OSX and VirtualBox, you will likely need to create a Docker machine with the `--virtualbox-cpu-count=2` flag.
If running on OSX and VirtualBox, you will likely need to create a Docker machine with the `--virtualbox-cpu-count` flag.
```
docker-machine create --driver virtualbox --virtualbox-cpu-count=2 default
docker-machine create --driver virtualbox --virtualbox-cpu-count "2" default
```

## Build Docker image
Expand Down Expand Up @@ -40,23 +40,23 @@ docker exec -it stratos-ui /bin/bash
## Running Karma tests
```
$ cd tools
$ ./node_modules/karma/bin/karma start
$ npm test
```

## Running Protractor tests
Start the Selenium server:
```
$ cd tools
$ ./node_modules/protractor/bin/webdriver-manager update
$ ./node_modules/protractor/bin/webdriver-manager start
$ ./node_modules/.bin/webdriver-manager update
$ ./node_modules/.bin/webdriver-manager start
```

Open another terminal and run Protractor. You'll need to run 'eval' again for your Docker machine (replace 'default' with your machine name).
```
eval "$(docker-machine env default)"
docker exec -it stratos-ui /bin/bash

$ ./node_modules/protractor/bin/protractor protractor.conf.js
$ ./node_modules/.bin/protractor protractor.conf.js
```

## Running ESLint
Expand Down
2 changes: 1 addition & 1 deletion tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "karma start karma.conf.js --single-run"
},
"author": "",
"license": "ISC",
Expand Down