2014-09-22 11:27:03 +02:00
|
|
|
Requires:
|
2014-09-22 15:29:12 +02:00
|
|
|
- nodejs/npm
|
2014-09-22 11:27:03 +02:00
|
|
|
- npm install karma
|
|
|
|
- npm install jasmine
|
2014-09-22 15:29:12 +02:00
|
|
|
- npm install protractor (e2e testing)
|
2014-09-22 11:27:03 +02:00
|
|
|
|
2014-09-22 15:29:12 +02:00
|
|
|
Setting up continuous integration / run the unit tests (make sure you're in
|
|
|
|
this directory so it can find the config file):
|
2014-09-22 11:27:03 +02:00
|
|
|
karma start
|
|
|
|
|
2014-09-22 15:36:06 +02:00
|
|
|
|
2014-09-22 15:29:12 +02:00
|
|
|
Setting up e2e tests (only if you don't have a selenium server to run the tests
|
|
|
|
on. If you do, edit the config to point to that url):
|
2014-09-22 15:36:06 +02:00
|
|
|
|
2014-09-22 15:29:12 +02:00
|
|
|
webdriver-manager update
|
|
|
|
webdriver-manager start
|
|
|
|
|
2014-09-22 15:36:06 +02:00
|
|
|
Create a file "environment-protractor.js" in this directory and type:
|
2014-09-22 16:00:23 +02:00
|
|
|
module.exports = {
|
|
|
|
seleniumAddress: 'http://localhost:4444/wd/hub',
|
2014-09-22 17:50:12 +02:00
|
|
|
baseUrl: "http://localhost:8008",
|
2014-09-22 16:00:23 +02:00
|
|
|
username: "YOUR_TEST_USERNAME",
|
|
|
|
password: "YOUR_TEST_PASSWORD"
|
|
|
|
}
|
2014-09-22 15:36:06 +02:00
|
|
|
|
2014-09-22 15:29:12 +02:00
|
|
|
Running e2e tests:
|
|
|
|
protractor protractor.conf.js
|
|
|
|
|
2014-09-22 17:50:12 +02:00
|
|
|
NOTE: This will create a public room on the target home server.
|
2014-09-22 15:29:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-22 11:27:03 +02:00
|
|
|
|