How to use the intern.args 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 Dash-Industry-Forum / dash.js / test / functional / config.js View on Github external
});

    conf.functionalSuites = ['test/functional/tests'];

    conf = Object.assign(conf, seleniumConfig);
    // console.log("Selenium configuration:\n", conf);

    ///////////////////////////////////////////////////////////////////////////////////////////////
    // Tests configuration parameters

    // Tests configuration from command line

    // protocol
    conf.protocol = 'https';
    if (intern.args.protocol) {
        conf.protocol = intern.args.protocol;
    }

    // application
    conf.testPage = applications.local;
    if (intern.args.app) {
        conf.testPage = applications[intern.args.app];
        // conf.smoothEnabled = decodeURIComponent((new RegExp('[?|&]mss=' + '([^&;]+?)(&|#|;|$)').exec(conf.testPage)||[,""])[1].replace(/\+/g, '%20')) || 'false';
    }

    if (intern.args.appurl) {
        conf.testPage = intern.args.appurl;
    }

    // Set application protocol
    conf.testPage = conf.protocol + '://' + conf.testPage
github Dash-Industry-Forum / dash.js / test / functional / config.js View on Github external
// Functional test suite(s) to run in each browser once non-functional tests are completed
        functionalSuites: ['test/functional/tests'],

        // The amount of time, in milliseconds, an asynchronous test can run before it is considered timed out. By default this value is 30 seconds.
        defaultTimeout: 30000,

        // A regular expression matching URLs to files that should not be included in code coverage analysis
        excludeInstrumentation: /^tests|bower_components|node_modules|testIntern/,

        // to keep browser opened at the end of the test
        leaveRemoteOpen: false
    };

    // Selenium configuration from command line
    if (intern.args.selenium) {
        seleniumConfig = seleniumConfigs[intern.args.selenium];
    }

    // Browsers to run integration testing against. Note that version numbers must be strings if used with Sauce
    // OnDemand. Options that will be permutated are browserName, version, platform, and platformVersion; any other
    // capabilities options specified for an environment will be copied as-is
    var os = 'windows';
    var browsers = ['all'];
    if (intern.args.os) {
        os = intern.args.os;
    }

    conf.environments = [];
    if (intern.args.browsers) {
        browsers = intern.args.browsers.split(',');
    }
github Orange-OpenSource / hasplayer.js / test / functional / testsCommon.js View on Github external
functionalSuites: testsSuites.all,

        // The amount of time, in milliseconds, an asynchronous test can run before it is considered timed out. By default this value is 30 seconds.
        defaultTimeout: 60000,

        // A regular expression matching URLs to files that should not be included in code coverage analysis
        excludeInstrumentation : /^tests|bower_components|node_modules|testIntern/,
    };

    // Selenium configuration from command line
    if (intern.args.selenium) {
        seleniumConfig = seleniumConfigs[intern.args.selenium];
    }

    if (intern.args.browsers) {
        var browsers = intern.args.browsers.split('&');

        conf.environments = [];
        browsers.forEach(function(browser) {
            conf.environments = conf.environments.concat(browsersConfig[browser]);
        });
    }

    if (intern.args.tests) {
        var tests = intern.args.tests.split('&');

        conf.functionalSuites = [];
        tests.forEach(function(test) {
            conf.functionalSuites = conf.functionalSuites.concat(testsSuites[test]);
        });
    }
github Orange-OpenSource / hasplayer.js / test / functional / testsCommon.js View on Github external
// Maximum number of simultaneous integration tests that should be executed on the remote WebDriver service
        maxConcurrency: 1,

        // Functional test suite(s) to run in each browser once non-functional tests are completed
        functionalSuites: testsSuites.all,

        // The amount of time, in milliseconds, an asynchronous test can run before it is considered timed out. By default this value is 30 seconds.
        defaultTimeout: 60000,

        // A regular expression matching URLs to files that should not be included in code coverage analysis
        excludeInstrumentation : /^tests|bower_components|node_modules|testIntern/,
    };

    // Selenium configuration from command line
    if (intern.args.selenium) {
        seleniumConfig = seleniumConfigs[intern.args.selenium];
    }

    if (intern.args.browsers) {
        var browsers = intern.args.browsers.split('&');

        conf.environments = [];
        browsers.forEach(function(browser) {
            conf.environments = conf.environments.concat(browsersConfig[browser]);
        });
    }

    if (intern.args.tests) {
        var tests = intern.args.tests.split('&');

        conf.functionalSuites = [];
github theintern / digdug / tests / support / util.ts View on Github external
export function deleteTunnelFiles(tunnel: Tunnel) {
	if (!tunnel || !tunnel.directory || intern.args.noClean) {
		return;
	}

	rm('-rf', tunnel.directory);
}