UNPKG

@villedemontreal/scripting

Version:
29 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TestScript = void 0; const core_1 = require("@caporal/core"); const src_1 = require("../src"); const lint_1 = require("./lint"); const testUnits_1 = require("./testUnits"); class TestScript extends src_1.ScriptBase { get name() { return 'test'; } get description() { return `Run the unit tests + the linting validations.`; } async configure(command) { command.option(`--bail`, `Stop the execution of the tests as soon as an error occures.`); command.option(`--jenkins`, `Configure the tests to be run by Jenkins.`); command.option(`--report <path>`, `The relative path to the report, when the tests are run for Jenkins.`, { default: `output/test-results/report.xml`, validator: core_1.program.STRING, }); } async main() { await this.invokeScript(lint_1.LintScript, {}, {}); await this.invokeScript(testUnits_1.TestUnitsScript, this.options, {}); } } exports.TestScript = TestScript; //# sourceMappingURL=test.js.map