Moving tests-related dependencies to the main package.json
This commit is contained in:
parent
8a3d332d2e
commit
4b5193fa65
@ -9,7 +9,7 @@
|
|||||||
"generate-refs-visual-regression-desktop": "rm -rf tests/webdriverio/screenshots; npm run test-visual-regression-desktop",
|
"generate-refs-visual-regression-desktop": "rm -rf tests/webdriverio/screenshots; npm run test-visual-regression-desktop",
|
||||||
"start:prod": "meteor reset && ROOT_URL=http://127.0.0.1/html5client NODE_ENV=production meteor --production",
|
"start:prod": "meteor reset && ROOT_URL=http://127.0.0.1/html5client NODE_ENV=production meteor --production",
|
||||||
"start:dev": "ROOT_URL=http://127.0.0.1/html5client NODE_ENV=development meteor",
|
"start:dev": "ROOT_URL=http://127.0.0.1/html5client NODE_ENV=development meteor",
|
||||||
"test": "wdio ./tests/webdriverio/wdio.conf.js",
|
"test": "jest",
|
||||||
"lint": "eslint . --ext .jsx,.js",
|
"lint": "eslint . --ext .jsx,.js",
|
||||||
"precommit": "lint-staged"
|
"precommit": "lint-staged"
|
||||||
},
|
},
|
||||||
@ -70,7 +70,9 @@
|
|||||||
"yaml": "^1.0.0"
|
"yaml": "^1.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"axios": "^0.18.0",
|
||||||
"chai": "~4.1.2",
|
"chai": "~4.1.2",
|
||||||
|
"dotenv": "^6.1.0",
|
||||||
"eslint": "~4.9.0",
|
"eslint": "~4.9.0",
|
||||||
"eslint-config-airbnb": "~16.1.0",
|
"eslint-config-airbnb": "~16.1.0",
|
||||||
"eslint-config-airbnb-base": "~12.1.0",
|
"eslint-config-airbnb-base": "~12.1.0",
|
||||||
@ -78,11 +80,14 @@
|
|||||||
"eslint-plugin-jsx-a11y": "~6.0.2",
|
"eslint-plugin-jsx-a11y": "~6.0.2",
|
||||||
"eslint-plugin-react": "~7.4.0",
|
"eslint-plugin-react": "~7.4.0",
|
||||||
"husky": "~0.14.3",
|
"husky": "~0.14.3",
|
||||||
|
"jest": "^23.6.0",
|
||||||
"lint-staged": "~4.3.0",
|
"lint-staged": "~4.3.0",
|
||||||
"postcss-modules-extract-imports": "1.1.0",
|
"postcss-modules-extract-imports": "1.1.0",
|
||||||
"postcss-modules-local-by-default": "1.2.0",
|
"postcss-modules-local-by-default": "1.2.0",
|
||||||
"postcss-modules-scope": "1.1.0",
|
"postcss-modules-scope": "1.1.0",
|
||||||
"postcss-modules-values": "1.3.0",
|
"postcss-modules-values": "1.3.0",
|
||||||
|
"puppeteer": "^1.10.0",
|
||||||
|
"sha1": "^1.1.1",
|
||||||
"wdio-jasmine-framework": "~0.3.2",
|
"wdio-jasmine-framework": "~0.3.2",
|
||||||
"wdio-junit-reporter": "~0.4.4",
|
"wdio-junit-reporter": "~0.4.4",
|
||||||
"wdio-spec-reporter": "~0.1.2",
|
"wdio-spec-reporter": "~0.1.2",
|
||||||
@ -105,6 +110,11 @@
|
|||||||
"autoprefixer": {}
|
"autoprefixer": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"jest": {
|
||||||
|
"modulePathIgnorePatterns": [
|
||||||
|
"/tests/webdriverio"
|
||||||
|
]
|
||||||
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/bigbluebutton/bigbluebutton.git"
|
"url": "https://github.com/bigbluebutton/bigbluebutton.git"
|
||||||
|
@ -11,7 +11,7 @@ To run these tests, you will need the following:
|
|||||||
|
|
||||||
These instructions assume you have the BigBlueButton repository cloned into a directory named `bigbluebutton`.
|
These instructions assume you have the BigBlueButton repository cloned into a directory named `bigbluebutton`.
|
||||||
|
|
||||||
First, install the required modules with `npm install`, from this directory. When Puppeteer installs, it will automatically install the Chromium browser in which the tests will run.
|
First, you need to have the dependencies installed with `meteor npm install`, from the `bigbluebutton-html5` directory. When Puppeteer installs, it will automatically install the Chromium browser in which the tests will run.
|
||||||
|
|
||||||
To run individual tests, you can also optionally install Jest globally with `sudo npm install jest -g`.
|
To run individual tests, you can also optionally install Jest globally with `sudo npm install jest -g`.
|
||||||
|
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "bigbluebutton-tests",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "",
|
|
||||||
"main": "app.js",
|
|
||||||
"scripts": {
|
|
||||||
"test": "jest"
|
|
||||||
},
|
|
||||||
"jest": {
|
|
||||||
"verbose": false
|
|
||||||
},
|
|
||||||
"author": "",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"axios": "^0.18.0",
|
|
||||||
"dotenv": "^6.0.0",
|
|
||||||
"jest": "^23.5.0",
|
|
||||||
"puppeteer": "^1.7.0",
|
|
||||||
"sha1": "^1.1.1"
|
|
||||||
},
|
|
||||||
"devDependencies": {}
|
|
||||||
}
|
|
@ -22,11 +22,9 @@ if [[ $files = *"bigbluebutton-html5"* ]]; then
|
|||||||
} > /dev/null
|
} > /dev/null
|
||||||
|
|
||||||
cd tests/puppeteer
|
cd tests/puppeteer
|
||||||
npm install
|
|
||||||
conf=$(docker exec $(docker ps -q) bbb-conf --secret | grep "Secret:")
|
conf=$(docker exec $(docker ps -q) bbb-conf --secret | grep "Secret:")
|
||||||
secret=$(echo $conf | cut -d' ' -f2)
|
secret=$(echo $conf | cut -d' ' -f2)
|
||||||
export BBB_SHARED_SECRET=$secret
|
export BBB_SHARED_SECRET=$secret
|
||||||
|
|
||||||
node html5-check.js
|
node html5-check.js
|
||||||
npm test
|
npm test
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user