-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Browser testing by means of Coveralls
- Loading branch information
Showing
9 changed files
with
201 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
language: node_js | ||
node_js: | ||
- 0.10 | ||
before_script: | ||
- 'npm install -g grunt-cli bower && bower install' | ||
sudo: false | ||
cache: | ||
directories: | ||
- node_modules | ||
env: | ||
global: | ||
- SAUCE_USERNAME=ng-flow | ||
- SAUCE_ACCESS_KEY=008c40ec-dbaf-4edc-abad-6c6afcc5d13a | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- env: TEST='unit-tests' | ||
node_js: "4.2" | ||
- env: TEST='browser-tests' | ||
node_js: "4.2" | ||
addons: | ||
sauce_connect: true | ||
allow_failures: | ||
- env: TEST='browser-tests' | ||
before_install: npm install -g grunt-cli bower | ||
install: | ||
- npm install | ||
- bower update | ||
script: | ||
- $TRAVIS_BUILD_DIR/travis.sh |
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 |
---|---|---|
@@ -1,70 +1,136 @@ | ||
module.exports = function(config) { | ||
config.set({ | ||
// define SL browsers | ||
var customLaunchers = { | ||
sl_ie10: { | ||
base: 'SauceLabs', | ||
browserName: 'internet explorer', | ||
platform: 'Windows 8', | ||
version: '10.0' | ||
}, | ||
sl_ie11: { | ||
base: 'SauceLabs', | ||
browserName: 'internet explorer', | ||
platform: 'Windows 10', | ||
version: '11.0' | ||
}, | ||
sl_edge: { | ||
base: 'SauceLabs', | ||
browserName: 'microsoftedge', | ||
platform: 'Windows 10', | ||
version: '20.10240' | ||
}, | ||
sl_chrome_1: { | ||
base: 'SauceLabs', | ||
browserName: 'chrome', | ||
platform: 'Linux', | ||
version: '26' | ||
}, | ||
sl_chrome_2: { | ||
base: 'SauceLabs', | ||
browserName: 'chrome', | ||
platform: 'Linux', | ||
version: '46' | ||
}, | ||
sl_firefox_1: { | ||
base: 'SauceLabs', | ||
browserName: 'firefox', | ||
platform: 'Linux', | ||
version: '13' | ||
}, | ||
sl_firefox_2: { | ||
base: 'SauceLabs', | ||
browserName: 'firefox', | ||
platform: 'Linux', | ||
version: '42' | ||
}, | ||
sl_android_1: { | ||
base: 'SauceLabs', | ||
browserName: 'android', | ||
platform: 'Linux', | ||
version: '4.4' | ||
}, | ||
sl_android_2: { | ||
base: 'SauceLabs', | ||
browserName: 'android', | ||
platform: 'Linux', | ||
version: '5.1' | ||
}, | ||
sl_iphone_1: { | ||
base: 'SauceLabs', | ||
browserName: 'iPhone', | ||
platform: 'OS X 10.10', | ||
deviceName: 'iPad Simulator', | ||
version: '7.1' | ||
}, | ||
sl_iphone_2: { | ||
base: 'SauceLabs', | ||
browserName: 'iPhone', | ||
platform: 'OS X 10.10', | ||
deviceName: 'iPad Simulator', | ||
deviceOrientation: 'portrait', | ||
version: '9.2' | ||
}, | ||
sl_safari_1: { | ||
base: 'SauceLabs', | ||
browserName: 'safari', | ||
platform: 'OS X 10.8', | ||
version: '6.0' | ||
}, | ||
sl_safari_2: { | ||
base: 'SauceLabs', | ||
browserName: 'safari', | ||
platform: 'OS X 10.11', | ||
version: '9.0' | ||
} | ||
} | ||
|
||
config.set({ | ||
// base path, that will be used to resolve files and exclude | ||
basePath: '', | ||
|
||
basePath: './', | ||
|
||
// frameworks to use | ||
frameworks: ['jasmine'], | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files: [ | ||
'bower_components/angular/angular.js', | ||
'bower_components/angular-mocks/angular-mocks.js', | ||
'bower_components/flow.js/dist/flow.js', | ||
|
||
'src/**/*.js', | ||
'test/*.spec.js' | ||
], | ||
|
||
|
||
// list of files to exclude | ||
exclude: [ | ||
|
||
], | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' | ||
reporters: ['progress'], | ||
|
||
reporters: ['progress', 'coverage', 'saucelabs'], | ||
|
||
// web server port | ||
port: 9876, | ||
|
||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
|
||
// level of logging | ||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
logLevel: config.LOG_INFO, | ||
|
||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: true, | ||
|
||
|
||
// Start these browsers, currently available: | ||
// - Chrome | ||
// - ChromeCanary | ||
// - Firefox | ||
// - Opera (has to be installed with `npm install karma-opera-launcher`) | ||
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`) | ||
// - PhantomJS | ||
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`) | ||
browsers: ['Chrome'], | ||
|
||
|
||
// If browser does not capture in given timeout [ms], kill it | ||
captureTimeout: 60000, | ||
|
||
|
||
// Continuous Integration mode | ||
// if true, it capture browsers, run tests and exit | ||
singleRun: false | ||
singleRun: true, | ||
|
||
customLaunchers: customLaunchers, | ||
|
||
browsers: Object.keys(customLaunchers), | ||
}); | ||
}; |
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 |
---|---|---|
|
@@ -22,5 +22,4 @@ Package.onUse(function(api) { | |
api.use('digimet:[email protected]', where); | ||
|
||
api.addFiles('./dist/ng-flow.js', where); // Files in use | ||
|
||
}); | ||
}); |
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
Oops, something went wrong.