added browser tests, modified ci script, removed testing for version 0.90.x

This commit is contained in:
Spencer Alger
2014-01-10 11:23:08 -07:00
parent 3490479eee
commit 3223fb4a6d
20 changed files with 194 additions and 91 deletions

View File

@ -35,6 +35,11 @@ module.exports = function (grunt) {
's3:upload_archives'
]);
grunt.registerTask('browser_clients:test', [
'run:browser_test_server',
'saucelabs-mocha'
]);
grunt.registerTask('__check_for_confirmation', function () {
if (grunt.config.get('confirm.release')) {
grunt.log.verbose.writeln('release confirmed');

View File

@ -17,20 +17,11 @@ module.exports = {
]
}
},
browser_integration_tests: {
exec: 'node ./scripts/run_browser_integration_suite',
browser_test_server: {
exec: 'node ./test/utils/server',
options: {
passArgs: [
'browsers'
]
}
},
browser_unit_tests: {
exec: './node_modules/.bin/testling .',
options: {
passArgs: [
'x'
]
wait: false,
ready: /listening/
}
}
};

View File

@ -0,0 +1,63 @@
module.exports = {
options: {
urls: [
'http://127.0.0.1:8000/jquery.html',
'http://127.0.0.1:8000/browser.html',
'http://127.0.0.1:8000/angular.html'
],
build: process.env.TRAVIS_JOB_ID || 'local_' + Date.now(),
detailedError: true
},
chrome: {
options: {
browsers: [
{
browserName: 'chrome',
platform: 'Windows 8'
},
{
browserName: 'chrome',
platform: 'Linux'
}
],
tags: ['master', 'chrome']
}
},
ie: {
options: {
browsers: [
{
browserName: 'internet explorer',
version: '11',
platform: 'Windows 8.1'
},
{
browserName: 'internet explorer',
version: '10',
platform: 'Windows 8'
},
{
browserName: 'internet explorer',
version: '9',
platform: 'Windows 7'
}
],
tags: ['master', 'ie']
}
},
firefox: {
options: {
browsers: [
{
browserName: 'firefox',
platform: 'Windows 7'
},
{
browserName: 'firefox',
platform: 'Linux'
}
],
tags: ['master', 'firefox']
}
}
};