2022-03-27 08:05:30 +08:00
|
|
|
module.exports = function (config) {
|
|
|
|
config.set({
|
|
|
|
// global config of your BrowserStack account
|
|
|
|
browserStack: {
|
|
|
|
username: process.env.BROWSERSTACK_USERNAME,
|
2022-03-27 08:40:11 +08:00
|
|
|
accessKey: process.env.BROWSERSTACK_ACCESSKEY,
|
2022-03-28 05:33:06 +08:00
|
|
|
project: process.env.BROWSERSTACK_PROJECT_NAME || 'showdown',
|
|
|
|
build: process.env.BROWSERSTACK_BUILD_NAME || require('./package.json').version,
|
|
|
|
name: process.env.COMMIT_MSG || 'Unit Testing'
|
2022-03-27 08:05:30 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
// define browsers
|
|
|
|
customLaunchers: {
|
|
|
|
bstack_chrome_windows: {
|
|
|
|
base: 'BrowserStack',
|
|
|
|
browser: 'chrome',
|
2022-03-27 10:33:01 +08:00
|
|
|
browser_version: '49',
|
2022-03-27 08:05:30 +08:00
|
|
|
os: 'Windows',
|
|
|
|
os_version: '10'
|
|
|
|
},
|
2022-04-28 04:42:24 +08:00
|
|
|
bstack_firefox_old_windows: {
|
2022-03-27 08:05:30 +08:00
|
|
|
base: 'BrowserStack',
|
|
|
|
browser: 'firefox',
|
2022-04-28 04:42:24 +08:00
|
|
|
browser_version: '45',
|
|
|
|
os: 'Windows',
|
|
|
|
os_version: '10'
|
|
|
|
},
|
|
|
|
bstack_firefox_latest_windows: {
|
|
|
|
base: 'BrowserStack',
|
|
|
|
browser: 'firefox',
|
|
|
|
browser_version: '99',
|
2022-03-27 08:05:30 +08:00
|
|
|
os: 'Windows',
|
|
|
|
os_version: '10'
|
|
|
|
},
|
2022-03-27 10:33:01 +08:00
|
|
|
bstack_edge_windows: {
|
2022-03-27 08:05:30 +08:00
|
|
|
base: 'BrowserStack',
|
2022-03-27 10:33:01 +08:00
|
|
|
browser: 'edge',
|
|
|
|
browser_version: '15',
|
2022-03-27 08:05:30 +08:00
|
|
|
os: 'Windows',
|
2022-03-27 10:33:01 +08:00
|
|
|
os_version: '10'
|
2022-03-27 08:05:30 +08:00
|
|
|
},
|
2022-04-28 04:42:24 +08:00
|
|
|
/*
|
2022-03-27 08:05:30 +08:00
|
|
|
bstack_ie11_windows: {
|
|
|
|
base: 'BrowserStack',
|
|
|
|
browser: 'ie',
|
|
|
|
browser_version: '11',
|
|
|
|
os: 'Windows',
|
|
|
|
os_version: '10'
|
|
|
|
},
|
2022-04-28 04:42:24 +08:00
|
|
|
*/
|
2022-03-27 10:33:01 +08:00
|
|
|
bstack_macos_safari: {
|
|
|
|
base: 'BrowserStack',
|
|
|
|
browser: 'safari',
|
|
|
|
browser_version: '10.1',
|
|
|
|
os: 'OS X',
|
|
|
|
os_version: 'Sierra'
|
|
|
|
},
|
2022-03-27 08:05:30 +08:00
|
|
|
bstack_iphoneX: {
|
|
|
|
base: 'BrowserStack',
|
|
|
|
browser: 'safari',
|
|
|
|
os: 'ios',
|
2022-03-27 10:33:01 +08:00
|
|
|
os_version: '11.0',
|
|
|
|
device: 'iPhone X',
|
|
|
|
real_mobile: true
|
|
|
|
},
|
|
|
|
bstack_android: {
|
|
|
|
base: 'BrowserStack',
|
|
|
|
browser: 'chrome',
|
|
|
|
os: 'android',
|
|
|
|
os_version:'4.4',
|
|
|
|
device: 'Samsung Galaxy Tab 4',
|
|
|
|
realMobile: true
|
2022-03-27 08:05:30 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2022-04-28 04:42:24 +08:00
|
|
|
browsers: ['bstack_chrome_windows', 'bstack_firefox_old_windows', 'bstack_firefox_latest_windows', /*'bstack_ie11_windows',*/ 'bstack_edge_windows', 'bstack_iphoneX', 'bstack_macos_safari', 'bstack_android'],
|
2022-03-27 08:05:30 +08:00
|
|
|
frameworks: ['mocha', 'chai'],
|
|
|
|
reporters: ['dots', 'BrowserStack'],
|
|
|
|
files: [
|
|
|
|
{ pattern: '.build/showdown.js'},
|
|
|
|
{ pattern: 'src/options.js'},
|
|
|
|
// tests
|
2022-03-27 10:33:01 +08:00
|
|
|
{ pattern: 'test/unit/showdown*.js' }
|
|
|
|
//{ pattern: 'test/functional/showdown*.js' },
|
2022-03-27 08:05:30 +08:00
|
|
|
],
|
|
|
|
singleRun: true,
|
|
|
|
concurrency: Infinity
|
|
|
|
});
|
|
|
|
};
|