skutter
Version:
Skutter: Opinionated BDD Browser based test framework
26 lines (25 loc) • 1.01 kB
JavaScript
;
const process_message_1 = require("./process-message");
class ExecutorInitMessage extends process_message_1.ProcessMessage {
constructor(screenshotRootPath, protractorArgs, stepLibraryPaths, features, verbosity) {
super("init");
if (!screenshotRootPath) {
throw new Error("screenshotRootPath has not been specified.");
}
if (!protractorArgs) {
throw new Error("protractorArgs has not been specified.");
}
if (!stepLibraryPaths) {
throw new Error("stepLibraryPaths have not been specified.");
}
if (!features || features.length === 0) {
throw new Error("features have not been specified.");
}
this.screenshotRootPath = screenshotRootPath;
this.protractorArgs = protractorArgs;
this.stepLibraryPaths = stepLibraryPaths;
this.features = features;
this.verbosity = verbosity;
}
}
exports.ExecutorInitMessage = ExecutorInitMessage;