Skip to content

Commit

Permalink
Merge pull request #31 from ssarber/master
Browse files Browse the repository at this point in the history
Add details on running tests, color to jasmine output
  • Loading branch information
amirrajan committed May 8, 2016
2 parents bc63bbf + 191b577 commit f120ad3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,25 @@ Run the app:

Then navigate to `http://localhost:3000`

If you want tests to execute every time you change a file:
#####If you want tests to execute every time you change a file:
1. Install [jasmine-node](https://github.com/mhevery/jasmine-node):
```
npm install jasmine-node -g
```
2. Run:
```
jasmine-node ./spec/describe_Game_spec.js --autotest --watch ./game.js
```

jasmine-node ./spec/describe_Game_spec.js --autotest --watch ./game.js
#####To run the end-to-end tests you first must install [protractor](https://github.com/angular/protractor/blob/master/docs/getting-started.md).

To run the E2E tests you first must install protractor. see: https://github.com/angular/protractor/blob/master/docs/getting-started.md
Then run:

If you want the server to load up everytime you change the back end:
protractor e2e-test/e2econf.js

This will launch an instance of Chrome browser and execute the tests.

#####If you want the server to load up everytime you change the back end:

npm install -g nodemon

Expand Down
11 changes: 10 additions & 1 deletion e2e-test/e2econf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,14 @@
*/
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['*Test.js']

capabilities: {
'browserName': 'chrome'
},

specs: ['*Test.js'],

jasmineNodeOpts: {
showColors: true
}
}

0 comments on commit f120ad3

Please sign in to comment.