Fredrik Wollsén 2019-04-01 17:17:38 +03:00
Родитель 9b66b7dcf8
Коммит 770f323826
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -166,8 +166,6 @@ ln -s Firefox\ Nightly.app FirefoxNightly.app
### Functional tests
(To run the functional tests, package.json has to be updated to reflect the built add-on zip filename the declaration of `npm run test:func` - this is silly and there is an issue about it here: https://github.com/mozilla/shield-studies-addon-template/issues/75 - but we are stuck with having to manually update it for the time being.)
```shell
npm run test:func
```

Просмотреть файл

@ -93,10 +93,10 @@
"start:use-if-pioneer-study": "npm run test:manual",
"test": "npm-run-all -n test:unit test:func",
"test:func": "npm-run-all -pr test:func:*",
"test:func:selenium-mocha": "FIREFOX_BINARY=${FIREFOX_BINARY:-nightly} ADDON_ZIP=./dist/button_icon_preference_-_shield_study_example-2.0.0.zip GECKODRIVER_URL=http://127.0.0.1:4444 mocha test/functional/ --bail --full-trace",
"test:func:selenium-mocha": "FIREFOX_BINARY=${FIREFOX_BINARY:-nightly} ADDON_ZIP=./dist/button_icon_preference_-_shield_study_example-$npm_package_version.zip GECKODRIVER_URL=http://127.0.0.1:4444 mocha test/functional/ --bail --full-trace",
"test:func:start-geckodriver-server": "geckodriver -vv 1> test/results/logs/geckodriver.log 2> test/results/logs/geckodriver.errors.log",
"test:manual": "npm-run-all -pr test:func:start-geckodriver-server test:run-firefox",
"test:run-firefox": "FIREFOX_BINARY=${FIREFOX_BINARY:-nightly} ADDON_ZIP=./dist/button_icon_preference_-_shield_study_example-2.0.0.zip GECKODRIVER_URL=http://127.0.0.1:4444 node run-firefox.js",
"test:run-firefox": "FIREFOX_BINARY=${FIREFOX_BINARY:-nightly} ADDON_ZIP=./dist/button_icon_preference_-_shield_study_example-$npm_package_version.zip GECKODRIVER_URL=http://127.0.0.1:4444 node run-firefox.js",
"test:unit": "NODE_ENV=test karma start",
"watch": "web-ext run",
"watch:use-if-pioneer-study": "echo \"Watch is disabled since Pioneer Opt-in add-on needs to be available in the empty profile and web-ext thus is not an option\""