Commit 4a04886c authored by Curtis Adam's avatar Curtis Adam

Update the chimp installation

parent f03434b4
module.exports = {
seleniumStandaloneOptions: {
version: '3.6.0',
drivers: {
chrome: {
version: '2.33'
},
ie: {
version: '3.6.0'
},
firefox: {
version: '0.19.0'
}
}
}
};
......@@ -20,7 +20,10 @@
"gulp-jscs": "^3.0.2",
"gulp-jshint": "^2.0.0",
"gulp-watch": "^4.3.5",
"jshint-stylish": "^2.1.0"
"jshint": "^2.9.5",
"jshint-stylish": "^2.1.0",
"fibers": "^2.0.0",
"chimp": "^0.50.2"
},
"author": "",
"license": "ISC",
......
## Installing chimp and other required software
### Install NodeJS 6.XX
[https://nodejs.org/en/](https://nodejs.org/en/)
### Install MongoDB
[https://www.mongodb.com](https://www.mongodb.com)
### Install Chrome or Chromium
### Install chimp
npm install -g chimp
### Additional steps for Windows
- [Install git for Windows (Shell integration)] (https://git-scm.com/download/win)
- Add your MongoDB bin folder to your `PATH enviormental variable` to gain access to mongodump.exe and mongorestore.exe
# Installing chimp and other required software
## Linux Steps (Ubuntu)
1. Install the npm package dependencies inside the local repository **"flashcards folder"** `meteor npm install`
1. Install the mongodb-tools: `sudo apt-get install mongo-tools`
1. Check if Node.js is installed with `node -v `and install the recommended version if this isn't the case
1. Update the OpenJDK `sudo apt-get install openjdk-9-jdk`
1. Create a symbolic link to the conf files, if your openjdk version is lower than 9~b177-2
> cd /usr/lib/jvm/java-9-openjdk-amd64
sudo ln -s lib conf
## Windows Steps
1. Install the npm package dependencies inside the local repository **"flashcards folder"** `meteor npm install`
1. [Install git for Windows (Shell integration)](https://git-scm.com/download/win)
1. [Install the latest Version of NodeJS](https://nodejs.org/en/)
1. [Install MongoDB](https://www.mongodb.com)
1. Add your MongoDB bin folder to your `PATH enviormental variable` to gain access to mongodump.exe and mongorestore.exe
1. Install the latest Version of Firefox
## Running a test
......
......@@ -16,9 +16,9 @@ if [ -z "$CALLED_FROM_SCRIPT" ] ; then
fi
if [ $DISPLAY -n ] ; then
xvfb-run --server-args="-ac -screen 0 1920x1080x24" chimp --ddp=http://localhost:3000 --path=$testDir $1 --browser=firefox
xvfb-run --server-args="-ac -screen 0 1920x1080x24" chimp .config/chimp.js --ddp=http://localhost:3000 --path=$testDir $1 --browser=firefox
else
chimp --ddp=http://localhost:$PORT --path=$testDir $1
./node_modules/.bin/chimp .config/chimp.js --ddp=http://localhost:$PORT --path=$testDir $1 --browser=firefox
fi
if [ $? -ne 0 ]; then
failedTests=$((failedTests+1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment