New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sauce testing #6
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments :)
karma.conf.js
Outdated
browserStack: { | ||
username: '', | ||
accessKey: '' | ||
if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to run saucelabs even on local? I'd suggest detecting process.env.CI i.c.w. a setting to check if we're on Travis (https://docs.travis-ci.com/user/environment-variables/#Convenience-Variables) or explicitly say we want to test against Sauce Labs.
@@ -33,6 +33,7 @@ | |||
"karma-jasmine": "^1.0.2", | |||
"karma-jasmine-ajax": "^0.1.13", | |||
"karma-jasmine-jquery": "^0.1.1", | |||
"karma-sauce-launcher": "^1.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to remove karma-browserstack-launcher.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is removed!
1 similar comment
1 similar comment
LGTM, but why are the tests failing? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lintly has detected code quality issues in this pull request.
browserStack: { | ||
username: '', | ||
accessKey: '' | ||
if (process.env.CI && (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-undef: 'process' is not defined.
browserStack: { | ||
username: '', | ||
accessKey: '' | ||
if (process.env.CI && (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-undef: 'process' is not defined.
browserStack: { | ||
username: '', | ||
accessKey: '' | ||
if (process.env.CI && (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-undef: 'process' is not defined.
karma.conf.js
Outdated
appiumVersion: "1.6.5", | ||
deviceName: "Android Emulator", | ||
deviceOrientation: "portrait", | ||
browserName: "Chrome", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-dupe-keys: Duplicate key 'browserName'.
@@ -53,36 +128,17 @@ module.exports = function(config) { | |||
webpackMiddleware: { | |||
noInfo: true | |||
}, | |||
colors: true, | |||
recordScreenshots: false, | |||
reporters: (process.env.TRAVIS) ? ['spec', 'coverage', 'coveralls', 'saucelabs'] : ['spec', 'coverage', 'saucelabs'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-undef: 'process' is not defined.
No description provided.