How to use the intern.args.service function in intern

To help you get started, we’ve selected a few intern examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github theintern / leadfoot / tests / intern.ts View on Github external
if (args.service === 'sauce') {
	const platforms: { [key: string]: string } = {
		WINDOWS: 'Windows 10',
		MAC: 'OS X 10.12'
	};
	environments.forEach((environment: any) => {
		if (environment.platform) {
			environment.platform = environment.platform.map(
				(platform: string) => {
					return platforms[platform] || platform;
				}
			);
		}
	});
	tunnel = 'SauceLabsTunnel';
} else if (args.service === 'testingbot') {
	const platforms: { [key: string]: string } = {
		WINDOWS: 'WIN10',
		MAC: 'SIERRA'
	};
	environments.forEach((environment: any) => {
		if (environment.platform) {
			environment.platform = environment.platform.map(
				(platform: string) => {
					return platforms[platform] || platform;
				}
			);
		}
	});
	tunnel = 'TestingBotTunnel';
}
github theintern / leadfoot / tests / intern.ts View on Github external
suites.push('tests/unit/lib/util');
}

export const functionalSuites = [
	'tests/functional/helpers/pollUntil',
	'tests/functional/Server',
	'tests/functional/Session',
	'tests/functional/Element',
	'tests/functional/Command'
];

export const excludeInstrumentation = /\b(?:tests|node_modules)\//;

export const filterErrorStack = true;

if (args.service === 'sauce') {
	const platforms: { [key: string]: string } = {
		WINDOWS: 'Windows 10',
		MAC: 'OS X 10.12'
	};
	environments.forEach((environment: any) => {
		if (environment.platform) {
			environment.platform = environment.platform.map(
				(platform: string) => {
					return platforms[platform] || platform;
				}
			);
		}
	});
	tunnel = 'SauceLabsTunnel';
} else if (args.service === 'testingbot') {
	const platforms: { [key: string]: string } = {