Producing trace-level geckodriver logs in test/results/logs - for debugging failing functional tests in CI

This commit is contained in:
Fredrik Wollsén 2018-07-29 20:17:14 +03:00
Родитель 3fc9ac3a20
Коммит cdee692ec9
7 изменённых файлов: 12 добавлений и 8 удалений

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

@ -84,4 +84,4 @@ jobs:
command: FIREFOX_BINARY=/home/circleci/checkout/firefox-nightly/firefox-bin npm run test:func
- store_test_results:
path: "test/coverage"
path: "test/results"

1
.gitignore поставляемый
Просмотреть файл

@ -1,5 +1,4 @@
dist/*
node_modules/
.env
test/coverage
/firefox-*

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

@ -17,7 +17,7 @@ module.exports = function(config) {
frameworks: ["mocha", "chai"],
reporters,
istanbulReporter: {
dir: "test/coverage",
dir: "test/results/coverage",
reporters: [
{
type: "lcov",

5
package-lock.json сгенерированный
Просмотреть файл

@ -11665,9 +11665,8 @@
"dev": true
},
"shield-studies-addon-utils": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/shield-studies-addon-utils/-/shield-studies-addon-utils-5.0.3.tgz",
"integrity": "sha512-3e5B+NpcT8CnpgRVc0x+QGk9KiUAq4axgAoBqc/U6tpOFfjDM08MInDLK5Qc35YfgLp9A0t/1J9UQvIIqpZ/BA==",
"version": "github:mozilla/shield-studies-addon-utils#4fdba4a64b9afd46a650cdcb119125739990b108",
"from": "github:mozilla/shield-studies-addon-utils#release/5.0.4",
"requires": {
"ajv": "^6.5.0",
"commander": "^2.15.1",

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

@ -7,7 +7,7 @@
"url": "https://github.com/mozilla/shield-studies-addon-template/issues"
},
"dependencies": {
"shield-studies-addon-utils": "5.0.3"
"shield-studies-addon-utils": "github:mozilla/shield-studies-addon-utils#release/5.0.4"
},
"devDependencies": {
"babel-core": "^6.26.3",
@ -88,7 +88,9 @@
"sign": "echo 'TBD, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1407757'",
"start": "web-ext run --no-reload",
"test": "npm-run-all -n test:unit test:func",
"test:func": "FIREFOX_BINARY=${FIREFOX_BINARY:-nightly} ADDON_ZIP=./dist/button_icon_preference_-_shield_study_example-2.0.0.zip mocha test/functional/ --bail",
"test:func": "npm-run-all -pr test:func:*",
"test:func:start-geckodriver-server": "geckodriver -vv 1> test/results/logs/geckodriver.log 2> test/results/logs/geckodriver.errors.log",
"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:unit": "NODE_ENV=test karma start",
"watch": "web-ext run"
}

2
test/results/coverage/.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,2 @@
*
!.gitignore

2
test/results/logs/.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,2 @@
*
!.gitignore