Commit ea2e78e3 authored by Alexander Bogdanov's avatar Alexander Bogdanov

Setting up testsuite

parent 72cc56c3
......@@ -4,3 +4,4 @@
node_modules
mastodon
.idea
test
\ No newline at end of file
......@@ -29,5 +29,30 @@ services:
redis:
image: redis
test:
image: node:8.11-alpine
volumes:
- .:/pwd
- ../cloudron-cli:/cloudron-cli
- $HOME/.cloudron.json:/root/.cloudron.json
environment:
- PATH=/cloudron-cli/bin:/pwd/test/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- USERNAME=$USER
- EMAIL=${USER}@localhost
- PASSWORD=password
- SELENIUM_REMOTE_URL=http://chromedriver:4444/wd/hub
working_dir: /pwd/test
command: |
sh -c "
npm install &&
while ! echo waiting for chromedriver:444 | nc chromedriver 4444; do sleep .3; done &&
mocha --bail test.js
"
chromedriver:
image: robcherry/docker-chromedriver:latest
environment:
- CHROMEDRIVER_WHITELISTED_IPS=
volumes:
data:
\ No newline at end of file
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "test.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"ejs": "^2.3.4",
"expect.js": "^0.3.1",
"mkdirp": "^0.5.1",
"mocha": "^2.3.4",
"rimraf": "^2.4.4",
"selenium-webdriver": "^2.53.3"
},
"dependencies": {
"chromedriver": "^2.40.0"
}
}
This diff is collapsed.
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