Skip to content

Commit

Permalink
Minimal setup with Saucelabs for karma-runner/karma#2061
Browse files Browse the repository at this point in the history
  • Loading branch information
kostia committed May 25, 2016
0 parents commit cfce825
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
24 changes: 24 additions & 0 deletions karma.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = function(config) {
config.set({
singleRun: true,
frameworks: ['jasmine'],
files: ['test_spec.js'],
client: {
useIframe: false
},
browsers: ['ie'],
customLaunchers: {
ie: {
base: 'SauceLabs',
os: 'Windows 7',
browserName: 'internet explorer',
version: '11'
}
},
sauceLabs: {
startConnect: false,
tunnelIdentifier: process.env.SAUCELABS_TUNNEL_IDENTIFIER,
testName: 'debug',
},
});
};
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"devDependencies": {
"jasmine": "2.4.1",
"karma": "0.13.22",
"karma-jasmine": "0.3.6",
"karma-sauce-launcher": "0.3.0"
},
"scripts": {
"test": "karma start karma.conf"
}
}
5 changes: 5 additions & 0 deletions test_spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe('when running failing specs on IE11', function() {
it('raises an error while capturing test output', function() {
expect(true).toBe(false);
});
});

0 comments on commit cfce825

Please sign in to comment.