Skip to content

Commit

Permalink
Improved test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Apr 14, 2016
1 parent 45ffece commit 837706d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
13 changes: 4 additions & 9 deletions codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ coverage:
extensions:
enabled:
- Codeception\Extension\RunFailed
modules:
config:
Db:
dsn: 'mysql:host=localhost;dbname=phalcon_test'
user: 'root'
password: ''
populate: true
cleanup: false
dump: tests/_data/schemas/mysql/mysql.dump.sql

params:
# get params drom environment vars
- env
11 changes: 11 additions & 0 deletions tests/unit.suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,14 @@ modules:
config:
Phalcon:
bootstrap: 'tests/_config/bootstrap.php'
Db:
# get params drom environment vars
# Create it before running tests. For example:
# export TEST_DB_MYSQL_DSN="mysql:host=10.1.0.3.;dbname=phalcon_test"
# ...
dsn: %TEST_DB_MYSQL_DSN%
user: %TEST_DB_MYSQL_USER%
password: %TEST_DB_MYSQL_PASSWD%
populate: true
cleanup: false
dump: tests/_data/schemas/mysql/mysql.dump.sql

0 comments on commit 837706d

Please sign in to comment.