Update saucelabs-unit-test.js (#24297)
Add license header and minor formatting tweaks.
This commit is contained in:
parent
ef38ca1c11
commit
5e7a9afe35
|
@ -1,13 +1,22 @@
|
|||
/*!
|
||||
* Script to run our Sauce Labs tests.
|
||||
* Copyright 2017 The Bootstrap Authors
|
||||
* Copyright 2017 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/
|
||||
|
||||
/*
|
||||
Docs: https://wiki.saucelabs.com/display/DOCS/Platform+Configurator
|
||||
Mac Opera is not currently supported by Sauce Labs
|
||||
Win Opera 15+ is not currently supported by Sauce Labs
|
||||
iOS Chrome is not currently supported by Sauce Labs
|
||||
*/
|
||||
|
||||
'use strict'
|
||||
|
||||
const path = require('path')
|
||||
const JSUnitSaucelabs = require('jsunitsaucelabs')
|
||||
|
||||
// Docs: https://wiki.saucelabs.com/display/DOCS/Platform+Configurator
|
||||
// Mac Opera is not currently supported by Sauce Labs
|
||||
// Win Opera 15+ is not currently supported by Sauce Labs
|
||||
// iOS Chrome is not currently supported by Sauce Labs
|
||||
|
||||
const jsUnitSaucelabs = new JSUnitSaucelabs({
|
||||
username: process.env.SAUCE_USERNAME,
|
||||
password: process.env.SAUCE_ACCESS_KEY,
|
||||
|
@ -48,7 +57,7 @@ const waitingCallback = (error, body, id) => {
|
|||
console.log(`Tested ${testURL}`)
|
||||
console.log(`Platform: ${test.platform.join(', ')}`)
|
||||
console.log(`Passed: ${passed.toString()}`)
|
||||
console.log(`Url ${test.url} \n`)
|
||||
console.log(`URL: ${test.url}\n`)
|
||||
if (errorStr) {
|
||||
console.error(errorStr)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue