@applitools/eyes-webdriverio

v5.54.8
Applitools Eyes SDK for WebdriverIO
eyes-webdriverio applitools eyes test automation visual regression automation testing tests webdriverio and 1 more...

lint

run --top-level eslint '**/*.ts'

test

run test:it && run test:service && run test:coverage

build

run --top-level tspc --project tsconfig.build.v$([ ! -z $APPLITOOLS_FRAMEWORK_VERSION ] && echo $APPLITOOLS_FRAMEWORK_VERSION | cut -f1 -d'.' || echo 8).json

setup

run --top-level browsers:setup

test:it

MOCHA_GROUP=it run --top-level mocha './test/it/*.spec.ts'

test:local

run test:it && run test:service && MOCHA_OMIT_TAGS=sauce run test:coverage

test:sauce

MOCHA_ONLY_TAGS=sauce run test:coverage

test:service

MOCHA_GROUP=service wdio run ./test/service/config/basic.config.js --autoCompileOpts.autoCompile=0 && wdio run ./test/service/config/ec.config.js --autoCompileOpts.autoCompile=0

up:framework

echo "$(jq '.devDependencies |= . + (["webdriverio", "@wdio/cli", "@wdio/local-runner", "@wdio/mocha-framework"] | with_entries({key: .value, value: $ENV.APPLITOOLS_FRAMEWORK_VERSION}))' ./package.json)" > ./package.json

test:coverage

APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE="./logs/$(uuidgen).log" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-webdriverio' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit

generate:tests

NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs

test:local:cdp

APPLITOOLS_FRAMEWORK_PROTOCOL=cdp run test:local
npm i @applitools/[email protected]

Metadata

Downloads