Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
ae48e75a
Commit
ae48e75a
authored
10 years ago
by
Kegan Dougal
Browse files
Options
Downloads
Patches
Plain Diff
Use phantomjs as the default browser and not chrome.
parent
29b54d66
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
webclient/test/README
+24
-6
24 additions, 6 deletions
webclient/test/README
webclient/test/karma.conf.js
+1
-1
1 addition, 1 deletion
webclient/test/karma.conf.js
with
25 additions
and
7 deletions
webclient/test/README
+
24
−
6
View file @
ae48e75a
Requires:
- nodejs/npm
- npm install karma
Testing is done using Karma.
UNIT TESTING
============
Requires the following:
- npm/nodejs
- phantomjs
Requires the following node packages:
- npm install jasmine
- npm install protractor (e2e testing)
- npm install karma
- npm install karma-jasmine
- npm install karma-phantomjs-launcher
- npm install karma-junit-reporter
Setting up continuous integration / run the unit tests (make sure you're in
this directory so it can find the config file):
Make sure you're in this directory so it can find the config file and run:
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
on. If you do, edit the config to point to that url):
...
...
This diff is collapsed.
Click to expand it.
webclient/test/karma.conf.js
+
1
−
1
View file @
ae48e75a
...
...
@@ -82,7 +82,7 @@ module.exports = function(config) {
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers
:
[
'
Chrome
'
],
browsers
:
[
'
PhantomJS
'
],
// Continuous Integration mode
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment