This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cross browser testing in Saucelabs (#100)
* Cross browser testing in Saucelabs * Use proper badge * Update test scripts
- Loading branch information
Showing
9 changed files
with
133 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
const server = require('./test/server'); | ||
|
||
module.exports = function (grunt) { | ||
const browsers = [{ | ||
browserName: 'firefox', | ||
platform: 'Windows 10' | ||
}, { | ||
browserName: 'googlechrome', | ||
platform: 'linux' | ||
}, { | ||
browserName: 'safari', | ||
platform: 'OS X 10.11', | ||
version: '9.0' | ||
}, { | ||
browserName: 'internet explorer', | ||
platform: 'Windows 8', | ||
version: '10' | ||
}, { | ||
browserName: 'internet explorer', | ||
platform: 'Windows 10', | ||
version: '11' | ||
}, { | ||
browserName: 'internet explorer', | ||
platform: 'Vista', | ||
version: '9' | ||
} | ||
]; | ||
|
||
grunt.registerTask('server', 'Start the test server', function() { | ||
server.listen(3000).on('listening', () => { | ||
console.log('Test server listening on port 3000'); | ||
}); | ||
}); | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
server: {}, | ||
|
||
'saucelabs-mocha': { | ||
all: { | ||
options: { | ||
urls: [ | ||
'http://127.0.0.1:3000/test/browser/index.html' | ||
], | ||
browsers: browsers, | ||
build: process.env.TRAVIS_JOB_ID, | ||
testname: 'feathers-client mocha tests', | ||
throttled: 1 | ||
} | ||
} | ||
}, | ||
watch: {} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-saucelabs'); | ||
|
||
grunt.registerTask('default', [ 'server', 'saucelabs-mocha' ]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const socketio = require('feathers-socketio'); | ||
const createApp = require('./fixture'); | ||
const app = createApp(function() { | ||
this.configure(socketio()); | ||
}); | ||
|
||
module.exports = app; |