Skip to content

Commit

Permalink
Added iOS and Android to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jforbes committed Sep 1, 2015
1 parent ea467b3 commit 72a3d3e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
4 changes: 3 additions & 1 deletion grunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ module.exports = function(grunt) {
ie11_bs: { browsers: ['ie11_bs'] },
ie10_bs: { browsers: ['ie10_bs'] },
ie9_bs: { browsers: ['ie9_bs'] },
ie8_bs: { browsers: ['ie8_bs'] }
ie8_bs: { browsers: ['ie8_bs'] },
android_bs: { browsers: ['android_bs'] },
ios_bs: { browsers: ['ios_bs'] }
},
vjsdocs: {
all: {
Expand Down
22 changes: 18 additions & 4 deletions test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ module.exports = function(config) {
runnerPort: 9100,
colors: true,
logLevel: config.LOG_INFO,
captureTimeout: 60000,
browserNoActivityTimeout: 60000,
captureTimeout: 300000,
browserNoActivityTimeout: 300000,

browserStack: {
name: process.env.TRAVIS_BUILD_NUMBER + process.env.TRAVIS_BRANCH,
pollingTimeout: 10000
pollingTimeout: 30000
},
customLaunchers: getCustomLaunchers(),

Expand Down Expand Up @@ -99,7 +99,9 @@ module.exports = function(config) {
'ie11_bs',
'ie10_bs',
'ie9_bs',
'ie8_bs'
'ie8_bs',
'android_bs',
'ios_bs'
];
} else {
settings.browsers = ['Firefox'];
Expand Down Expand Up @@ -162,6 +164,18 @@ function getCustomLaunchers(){
browser_version: '8',
os: 'Windows',
os_version: '7'
},

android_bs: {
base: 'BrowserStack',
os: 'android',
os_version: '4.4'
},

ios_bs: {
base: 'BrowserStack',
os: 'ios',
os_version: '8.3'
}
};
}

0 comments on commit 72a3d3e

Please sign in to comment.