Created
November 3, 2023 04:18
-
-
Save josuemb/698c90d366e5e061ecb5a1216c87ccb2 to your computer and use it in GitHub Desktop.
Example for testing and Android Application using Appium, wdio and mochaJS (multi OS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "calculator-test", | |
"description": "Example for testing and Android Application using Appium, wdio and mochaJS.", | |
"type": "module", | |
"version": "0.0.1", | |
"config": { | |
"outputdir": "output" | |
}, | |
"scripts": { | |
"prewdio-local": "npm install", | |
"wdio-local": "wdio run ./test/config/wdio.local.conf.js", | |
"prewdio-device-farm": "npm install", | |
"wdio-device-farm": "wdio run ./test/config/wdio.devicefarm.conf.js", | |
"create-output-dir": "run-script-os", | |
"create-output-dir:windows": "IF not exist %npm_package_config_outputdir% (mkdir %npm_package_config_outputdir%)", | |
"create-output-dir:nix": "mkdir -p $npm_package_config_outputdir", | |
"create-tgz": "run-script-os", | |
"create-tgz:windows": "npm pack --pack-destination .\\%npm_package_config_outputdir%", | |
"create-tgz:nix": "npm pack --pack-destination ./$npm_package_config_outputdir", | |
"precreate-zip": "npm install && npm run create-output-dir && npm run create-tgz", | |
"create-zip": "run-script-os", | |
"create-zip:windows": "7z a .\\%npm_package_config_outputdir%\\%npm_package_name%-%npm_package_version%.zip .\\%npm_package_config_outputdir%\\%npm_package_name%-%npm_package_version%.tgz || echo \"There was an erro creating zip file. Is 7zip installed?\"", | |
"create-zip:nix": "zip ./$npm_package_config_outputdir/$npm_package_name-$npm_package_version.zip ./$npm_package_config_outputdir/$npm_package_name-$npm_package_version.tgz || echo \"There was an erro creating zip file. Is zip installed?\"", | |
"preclean": "npm install", | |
"clean": "run-script-os", | |
"clean:windows": "rmdir /s /q .\\%npm_package_config_outputdir% 2>nul & rmdir /s /q .\\node_modules 2>nul & del /Q .\\*-lock.json", | |
"clean:nix": "rm -Rf ./$npm_package_config_outputdir; rm -Rf ./node_modules ; rm -f ./*-lock.json" | |
}, | |
"author": "josuemb@gmail.com", | |
"license": "MIT", | |
"dependencies": { | |
"mocha": "^10.2.0", | |
"webdriverio": "^8.21.0" | |
}, | |
"devDependencies": { | |
"@wdio/cli": "^8.21.0", | |
"@wdio/junit-reporter": "^8.21.0", | |
"@wdio/local-runner": "^8.21.0", | |
"@wdio/mocha-framework": "^8.21.0", | |
"@wdio/spec-reporter": "^8.21.0", | |
"run-script-os": "^1.1.6" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment