Skip to content

Commit da0ecd9

Browse files
committed
fixed tests
1 parent 09b451a commit da0ecd9

4 files changed

Lines changed: 6 additions & 10 deletions

File tree

.circleci/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44

55
cd test
66

7-
docker-compose run --rm test-helpers test/helper
8-
docker-compose run --rm test-helpers test/rest
7+
docker-compose run --rm test-unit
8+
docker-compose run --rm test-rest
99
docker-compose run --rm test-acceptance.webdriverio
1010
docker-compose run --rm test-acceptance.nightmare
1111
docker-compose run --rm test-acceptance.puppeteer

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ before_script:
2929
- sh -e /etc/init.d/xvfb start
3030
- chmod -R 777 test/data
3131
- php -S 127.0.0.1:8000 -t test/data/app >/dev/null 2>&1 &
32-
- npm run json-server &
33-
- sleep 10
3432
script:
3533
- npm test
3634
- './node_modules/.bin/mocha test/helper/${HELPER}_test.js'

test/data/rest/db.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"comments":[],"posts":[{"id":1,"title":"json-server","author":"davert"}]}
1+
{"posts":[{"id":1,"title":"json-server","author":"davert"}],"user":{"name":"davert"}}

test/docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ services:
99
- ..:/codecept
1010
- node_modules:/codecept/node_modules
1111

12-
test-helpers:
12+
test-rest:
1313
build: ..
14-
entrypoint: /codecept/node_modules/.bin/mocha --invert --fgrep Appium
15-
command: test/helper
14+
entrypoint: /codecept/node_modules/.bin/mocha
15+
command: test/rest
1616
working_dir: /codecept
1717
env_file: .env
1818
depends_on:
19-
- selenium.chrome
20-
- php
2119
- json_server
2220
volumes:
2321
- ..:/codecept

0 commit comments

Comments
 (0)