Moving tests-related dependencies to the main package.json

This commit is contained in:
Maxim Khlobystov 2018-11-22 13:22:52 -05:00
parent 8a3d332d2e
commit 4b5193fa65
4 changed files with 13 additions and 27 deletions

View File

@ -9,7 +9,7 @@
"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: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",
"precommit": "lint-staged"
},
@ -70,7 +70,9 @@
"yaml": "^1.0.0"
},
"devDependencies": {
"axios": "^0.18.0",
"chai": "~4.1.2",
"dotenv": "^6.1.0",
"eslint": "~4.9.0",
"eslint-config-airbnb": "~16.1.0",
"eslint-config-airbnb-base": "~12.1.0",
@ -78,11 +80,14 @@
"eslint-plugin-jsx-a11y": "~6.0.2",
"eslint-plugin-react": "~7.4.0",
"husky": "~0.14.3",
"jest": "^23.6.0",
"lint-staged": "~4.3.0",
"postcss-modules-extract-imports": "1.1.0",
"postcss-modules-local-by-default": "1.2.0",
"postcss-modules-scope": "1.1.0",
"postcss-modules-values": "1.3.0",
"puppeteer": "^1.10.0",
"sha1": "^1.1.1",
"wdio-jasmine-framework": "~0.3.2",
"wdio-junit-reporter": "~0.4.4",
"wdio-spec-reporter": "~0.1.2",
@ -105,6 +110,11 @@
"autoprefixer": {}
}
},
"jest": {
"modulePathIgnorePatterns": [
"/tests/webdriverio"
]
},
"repository": {
"type": "git",
"url": "https://github.com/bigbluebutton/bigbluebutton.git"

View File

@ -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`.
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`.
@ -34,4 +34,4 @@ The HTML5 client takes a long time to start in the Docker container. The script
## Known Issues
* Hotkeys do not work yet. When hotkeys are pressed, keydown and keyup events are fired, but the click events that would normally be created to press buttons do not occur.
* Some tests will sometimes fail with a timeout error. Different tests may fail every time the tests are run. This problem affects all tests, and the cause is unknown as of now.
* Some tests will sometimes fail with a timeout error. Different tests may fail every time the tests are run. This problem affects all tests, and the cause is unknown as of now.

View File

@ -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": {}
}

View File

@ -22,11 +22,9 @@ if [[ $files = *"bigbluebutton-html5"* ]]; then
} > /dev/null
cd tests/puppeteer
npm install
conf=$(docker exec $(docker ps -q) bbb-conf --secret | grep "Secret:")
secret=$(echo $conf | cut -d' ' -f2)
export BBB_SHARED_SECRET=$secret
node html5-check.js
npm test
fi