UNPKG

ui-omakase-framework

Version:

A comprehensive E2E testing framework library with pre-built Cucumber step definitions and utilities for web automation testing

11 lines (10 loc) 472 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.generateCucumberRuntimeTag = void 0; const generateCucumberRuntimeTag = (commonConfig, runtimeEnv, availableEnvList, runtimeTag) => { const tagExpression = availableEnvList.filter(e => e !== runtimeEnv).map(e => `(@${runtimeTag} and not @${e})`).join(' and '); return `${commonConfig} --tags '${tagExpression}'`; }; exports.generateCucumberRuntimeTag = generateCucumberRuntimeTag;