mirror of
https://github.com/element-hq/synapse
synced 2024-09-12 03:35:10 +00:00
Use phantomjs as the default browser and not chrome.
This commit is contained in:
parent
29b54d6638
commit
ae48e75ad7
2 changed files with 26 additions and 8 deletions
|
@ -1,13 +1,31 @@
|
||||||
Requires:
|
Testing is done using Karma.
|
||||||
- nodejs/npm
|
|
||||||
- npm install karma
|
|
||||||
- npm install jasmine
|
|
||||||
- npm install protractor (e2e testing)
|
|
||||||
|
|
||||||
Setting up continuous integration / run the unit tests (make sure you're in
|
|
||||||
this directory so it can find the config file):
|
UNIT TESTING
|
||||||
|
============
|
||||||
|
|
||||||
|
Requires the following:
|
||||||
|
- npm/nodejs
|
||||||
|
- phantomjs
|
||||||
|
|
||||||
|
Requires the following node packages:
|
||||||
|
- npm install jasmine
|
||||||
|
- npm install karma
|
||||||
|
- npm install karma-jasmine
|
||||||
|
- npm install karma-phantomjs-launcher
|
||||||
|
- npm install karma-junit-reporter
|
||||||
|
|
||||||
|
Make sure you're in this directory so it can find the config file and run:
|
||||||
karma start
|
karma start
|
||||||
|
|
||||||
|
You should see all the tests pass.
|
||||||
|
|
||||||
|
|
||||||
|
E2E TESTING
|
||||||
|
===========
|
||||||
|
|
||||||
|
npm install protractor
|
||||||
|
|
||||||
|
|
||||||
Setting up e2e tests (only if you don't have a selenium server to run the tests
|
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):
|
on. If you do, edit the config to point to that url):
|
||||||
|
|
|
@ -82,7 +82,7 @@ module.exports = function(config) {
|
||||||
|
|
||||||
// start these browsers
|
// start these browsers
|
||||||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
||||||
browsers: ['Chrome'],
|
browsers: ['PhantomJS'],
|
||||||
|
|
||||||
|
|
||||||
// Continuous Integration mode
|
// Continuous Integration mode
|
||||||
|
|
Loading…
Reference in a new issue