Skip to content

Commit 061d627

Browse files
committed
add codeception
1 parent d9a3d42 commit 061d627

6 files changed

+50
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.env
22
vendor
33
node_modules
4-
app/storage/route.cache
4+
app/storage/route.cache
5+
tests/_*

codeception.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
paths:
2+
tests: tests
3+
output: tests/_output
4+
data: tests/_data
5+
support: tests/_support
6+
envs: tests/_envs
7+
actor_suffix: Tester
8+
extensions:
9+
enabled:
10+
- Codeception\Extension\RunFailed

composer.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,8 @@
3333
"optimize-autoloader": true
3434
},
3535
"minimum-stability": "dev",
36-
"prefer-stable": true
37-
}
36+
"prefer-stable": true,
37+
"require-dev": {
38+
"codeception/codeception": "^2.3"
39+
}
40+
}

tests/acceptance.suite.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Codeception Test Suite Configuration
2+
#
3+
# Suite for acceptance tests.
4+
# Perform tests in browser using the WebDriver or PhpBrowser.
5+
# If you need both WebDriver and PHPBrowser tests - create a separate suite.
6+
7+
actor: AcceptanceTester
8+
modules:
9+
enabled:
10+
- PhpBrowser:
11+
url: http://localhost:8181
12+
- \Helper\Acceptance

tests/functional.suite.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Codeception Test Suite Configuration
2+
#
3+
# Suite for functional tests
4+
# Emulate web requests and make application process them
5+
# Include one of framework modules (Symfony2, Yii2, Laravel5) to use it
6+
# Remove this suite if you don't use frameworks
7+
8+
actor: FunctionalTester
9+
modules:
10+
enabled:
11+
# add a framework module here
12+
- \Helper\Functional

tests/unit.suite.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Codeception Test Suite Configuration
2+
#
3+
# Suite for unit or integration tests.
4+
5+
actor: UnitTester
6+
modules:
7+
enabled:
8+
- Asserts
9+
- \Helper\Unit

0 commit comments

Comments
 (0)