Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved test environment #11668

Merged
merged 2 commits into from
Apr 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
- TEST_DB_MYSQL_PASSWD=""
- TEST_DB_MYSQL_NAME="phalcon_test"
- TEST_DB_MYSQL_CHARSET="utf8"
- TEST_DB_MYSQL_DSN="mysql:host=127.0.0.1;dbname=phalcon_test"
- TEST_DB_MONGO_HOST="127.0.0.1"
- TEST_DB_MONGO_PORT="27017"
- TEST_DB_MONGO_USER="admin"
Expand Down
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drom? ;)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drom is the king! All hail Drom!

- 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drom again )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

# 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