Skip to content

Commit 8b8a5ff

Browse files
committed
codeception
1 parent 47e49d5 commit 8b8a5ff

File tree

19 files changed

+5282
-309
lines changed

19 files changed

+5282
-309
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
composer.phar
2+
geckodriver
3+
selenium-server.jar
24
vendor
Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
-include ../.env
22

3+
DRIVER_LOCATION=geckodriver
4+
DRIVER_URL=https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
5+
6+
$(DRIVER_LOCATION):
7+
curl -s -L "$(DRIVER_URL)" | tar -xz
8+
chmod +x $(DRIVER_LOCATION)
9+
10+
SELENIUM_LOCATION=selenium-server.jar
11+
SELENIUM_URL=https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
12+
13+
$(SELENIUM_LOCATION):
14+
curl -L --output $(SELENIUM_LOCATION) $(SELENIUM_URL)
15+
316
composer:
417
./install.sh
518

@@ -9,5 +22,5 @@ update:
922
install:
1023
php composer.phar install
1124

12-
test:
13-
API_KEY=$(API_KEY) php ./vendor/bin/codecept run --steps
25+
test: $(DRIVER_LOCATION) $(SELENIUM_LOCATION)
26+
API_KEY=$(API_KEY) php vendor/bin/codecept run --steps
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
paths:
2+
tests: tests
3+
output: tests/_output
4+
data: tests/_data
5+
support: tests/_support
6+
envs: tests/_envs
7+
actor: AcceptanceTester
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"require": {
3+
"mailslurp/mailslurp-client-php": "dev-master",
4+
"codeception/codeception": "4.1.x-dev",
5+
"codeception/module-webdriver": "^1.2.0",
6+
"codeception/module-asserts": "^1.0.0"
7+
}
8+
}

0 commit comments

Comments
 (0)