UNPKG

testplane

Version:

Tests framework based on mocha and wdio

215 lines (214 loc) 8.34 kB
{ "name": "testplane", "version": "9.0.7", "description": "Tests framework based on mocha and wdio", "main": "build/src/index.js", "files": [ "build", "typings" ], "exports": { ".": { "require": "./build/src/index.js", "import": "./build/src/index.js" }, "./unstable": { "require": "./build/src/unstable.js", "import": "./build/src/unstable.js" } }, "scripts": { "browsers:launch": "docker run -it --rm --network=host $(which colima >/dev/null || echo --add-host=host.docker.internal:0.0.0.0) yinfra/html-reporter-browsers", "build": "tsc --build && npm run build-bundles && npm run copy-static", "copy-static": "copyfiles 'src/browser/client-scripts/**/*.js' 'src/**/[!cache]*/autogenerated/**/*.json' build", "build-node-bundle": "esbuild ./src/bundle/cjs/index.ts --outdir=./build/src/bundle/cjs --bundle --format=cjs --platform=node --target=ES2021", "build-browser-bundle": "node ./src/browser/client-scripts/build.js ./src/browser/client-scripts/screen-shooter && node ./src/browser/client-scripts/build.js ./src/browser/client-scripts/browser-utils", "build-bundles": "concurrently -c 'auto' 'npm:build-browser-bundle' 'npm:build-node-bundle --minify'", "resolve-ubuntu-dependencies": "ts-node ./src/browser-installer/ubuntu-packages/collect-dependencies", "check-types": "tsc --project test/tsconfig.json", "clean": "rimraf build/ *.tsbuildinfo", "lint": "eslint --cache . && prettier --check .", "reformat": "eslint --fix . && prettier --write .", "prettier-watch": "onchange '**' --exclude-path .prettierignore -- prettier --write {{changed}}", "test-unit": "node scripts/run-node-without-type-stripping.js ./node_modules/mocha/bin/_mocha \"test/!(integration|e2e|browser-env|fixtures)/**/*.[jt]s\"", "test-unit:coverage": "c8 --all --src=src --reporter=html --reporter=text-summary --exclude=\"build/**\" --exclude=\"test/**\" --exclude=\"**/*.d.ts\" node scripts/run-node-without-type-stripping.js ./node_modules/mocha/bin/_mocha \"test/!(integration|browser-env|e2e)/**/*.[jt]s\"", "test-unit:generate-fixtures": "TS_NODE_PROJECT=test/tsconfig.json node -r ts-node/register -r tsconfig-paths/register test/src/browser/screen-shooter/composite-image/fixtures/generate.ts generate", "test": "npm run test-unit && npm run check-types && npm run lint", "test-integration": "TS_NODE_TRANSPILE_ONLY=1 node scripts/run-node-without-type-stripping.js ./node_modules/mocha/bin/_mocha -r ts-node/register test/integration/*/**", "test-e2e": "npm run test-e2e-mocha && npm run test-e2e-testplane", "test-e2e-mocha": "_mocha \"test/e2e/**/*.test.js\" --ignore \"test/e2e/**/fixture-project/**\"", "test-e2e-testplane": "npm run test-e2e-testplane:generate-fixtures && npm run test-e2e-testplane:run-tests", "test-e2e-testplane:run-tests": "node bin/testplane --config test/e2e/testplane.config.ts", "test-e2e-testplane:generate-fixtures": "node bin/testplane --config test/e2e/fixtures/basic-report/testplane.config.ts || true", "test-e2e-testplane:gui": "node bin/testplane --config test/e2e/testplane.config.ts gui", "test-browser-env": "TS_NODE_PROJECT=./test/browser-env/tsconfig.json node bin/testplane -r tsconfig-paths/register --config test/browser-env/testplane.config.ts", "test-browser-env:gui": "TS_NODE_PROJECT=./test/browser-env/tsconfig.json node bin/testplane gui -r tsconfig-paths/register --config test/browser-env/testplane.config.ts", "toc": "doctoc docs --title '### Contents'", "precommit": "npm run lint", "prepack": "npm run clean && npm run build", "preversion": "npm run lint && npm test", "commitmsg": "commitlint -e", "release": "standard-version", "watch": "npm run copy-static && npm run build-browser-bundle && concurrently -c 'auto' 'npm:watch:src' 'npm:watch:bundle'", "watch:src": "tsc --build --watch", "watch:bundle": "npm run build-node-bundle -- --watch" }, "repository": { "type": "git", "url": "git://github.com/gemini-testing/testplane.git" }, "homepage": "https://testplane.io/", "engines": { "node": ">= 22" }, "keywords": [ "testplane", "hermione", "webdriverio", "mocha", "test" ], "bin": { "testplane": "./bin/testplane", "hermione": "./bin/hermione" }, "license": "MIT", "dependencies": { "@babel/code-frame": "7.24.2", "@gemini-testing/commander": "2.15.4", "@jridgewell/trace-mapping": "0.3.31", "@jspm/core": "2.0.1", "@jsquash/png": "3.1.1", "@puppeteer/browsers": "3.0.4", "@testplane/wdio-protocols": "9.4.7", "@testplane/wdio-utils": "9.5.4", "@testplane/webdriverio": "9.5.28", "@vitest/spy": "2.1.4", "buffer-crc32": "1.0.0", "chalk": "2.4.2", "clear-require": "1.0.1", "cli-progress": "3.12.0", "debug": "2.6.9", "edgedriver": "5.6.1", "error-stack-parser": "2.1.4", "esbuild": "0.25.8", "expect-webdriverio": "3.6.0", "fs-extra": "7.0.1", "geckodriver": "4.5.0", "gemini-configparser": "1.4.2", "get-port": "5.1.1", "import-meta-resolve": "4.0.0", "local-pkg": "0.4.3", "lodash": "4.17.21", "looks-same": "10.0.1", "micromatch": "4.0.5", "mocha": "10.2.0", "p-limit": "3.1.0", "pirates": "4.0.7", "plugins-loader": "1.3.4", "png-validator": "1.1.0", "proper-lockfile": "4.1.2", "recast": "0.23.6", "resolve.exports": "2.0.2", "sizzle": "2.3.6", "socket.io": "4.7.5", "socket.io-client": "4.7.5", "strftime": "0.10.2", "strip-ansi": "6.0.1", "temp": "0.8.3", "tinyspy": "3.0.2", "urijs": "1.19.11", "url-join": "4.0.1", "vite": "5.1.6", "wait-port": "1.1.0", "worker-farm": "1.7.0", "ws": "8.18.3", "yallist": "3.1.1" }, "devDependencies": { "@babel/parser": "7.28.5", "@commitlint/cli": "^19.0.3", "@commitlint/config-conventional": "^19.0.3", "@cspotcode/source-map-support": "0.8.0", "@rrweb/record": "2.0.0-alpha.18", "@sinonjs/fake-timers": "10.3.0", "@swc/core": "1.13.3", "@testplane/wdio-types": "9.5.5", "@types/babel__code-frame": "7.0.6", "@types/browserify": "12.0.40", "@types/chai": "4.3.4", "@types/chai-as-promised": "7.1.5", "@types/cli-progress": "3.11.6", "@types/debug": "4.1.12", "@types/escape-string-regexp": "2.0.1", "@types/fs-extra": "11.0.4", "@types/js-levenshtein": "1.1.3", "@types/jsdom": "21.1.7", "@types/lodash": "4.14.191", "@types/micromatch": "4.0.9", "@types/mocha": "10.0.1", "@types/node": "24.13.1", "@types/proper-lockfile": "4.1.4", "@types/proxyquire": "1.3.28", "@types/set-cookie-parser": "2.4.10", "@types/sinon": "17.0.1", "@types/sinonjs__fake-timers": "8.1.2", "@types/strftime": "0.9.8", "@types/urijs": "1.19.25", "@types/url-join": "4.0.3", "@types/yallist": "4.0.4", "@typescript-eslint/eslint-plugin": "6.12.0", "@typescript-eslint/parser": "6.12.0", "aliasify": "1.9.0", "app-module-path": "2.2.0", "browserify": "13.3.0", "c8": "10.1.3", "chai": "4.2.0", "chai-as-promised": "7.1.1", "concurrently": "8.2.2", "copyfiles": "2.4.1", "doctoc": "2.2.0", "eslint": "8.25.0", "eslint-config-gemini-testing": "2.8.0", "eslint-config-prettier": "8.7.0", "execa": "5.1.1", "glob-extra": "5.0.2", "html-reporter": "11.9.3", "husky": "0.11.4", "js-levenshtein": "1.1.6", "jsdom": "^24.0.0", "jsdom-global": "3.0.2", "onchange": "7.1.0", "prettier": "2.8.4", "proxyquire": "1.8.0", "rimraf": "4.1.2", "sinon": "17.0.1", "sinon-chai": "3.7.0", "standard-version": "9.5.0", "ts-node": "10.9.1", "tsconfig-paths": "4.2.0", "type-fest": "3.11.1", "typescript": "5.3.2", "uglifyify": "3.0.4" }, "peerDependencies": { "@babel/parser": ">=7.0.0", "@cspotcode/source-map-support": ">=0.7.0", "@swc/core": ">=1.3.96", "ts-node": ">=10.5.0" }, "peerDependenciesMeta": { "@babel/parser": { "optional": true }, "ts-node": { "optional": true }, "@cspotcode/source-map-support": { "optional": true }, "@swc/core": { "optional": true } } }