UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

27 lines 804 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const cli_1 = require("./cli"); const testrunner_1 = require("./testrunner"); function run(selectedSuites = []) { const tests = new testrunner_1.TestRunner(); const suites = cli_1.Cli.config.getSuites(); if (selectedSuites.length) { suites.forEach(function (suite) { if (selectedSuites.includes(suite.name)) { tests.addSuite(suite); } }); } else { suites.forEach(function (suite) { tests.addSuite(suite); }); } if (tests.getSuites().length == 0) { cli_1.Cli.log("Did not find any test suites to run.\n"); cli_1.Cli.exit(2); } tests.run(); } exports.run = run; //# sourceMappingURL=run.js.map