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

Codeception version downgrade #2317

Closed
Ragazzo opened this issue Feb 4, 2014 · 2 comments
Closed

Codeception version downgrade #2317

Ragazzo opened this issue Feb 4, 2014 · 2 comments
Milestone

Comments

@Ragazzo
Copy link
Contributor

Ragazzo commented Feb 4, 2014

We should use 1.8.* as @samdark noted, but currently that branch does not contain valid Yii2 module code. Yii2 code from master, should be pushed there. I will do PR to Codeception repo, or @qiangxue can make it too.

Currently we also have a problem with WebDriver in codeception master, and with Yii2 module cookies - cookies does not contain valid session id, they were containing it some time ago, but since it is master, something has changed and now there is no such cookie when --debug run.

@Ragazzo
Copy link
Contributor Author

Ragazzo commented Feb 7, 2014

Ok, i merged changes from Codeception master to 1.8.* branch. I run tests with this version, all is fine:

mark@markubuntu:~/basic$ vendor/bin/codecept run -v acceptance
Codeception PHP Testing Framework v1.8.2
Powered by PHPUnit 3.7.30 by Sebastian Bergmann.

Acceptance Tests (4) --------------------------------------------
Modules: WebHelper, PhpBrowser
-----------------------------------------------------------------
Trying to ensure that about works (AboutCept.php)           Ok
Trying to ensure that contact works (ContactCept.php)       Ok
Trying to ensure that home page works (HomeCept.php)        Ok
Trying to ensure that login works (LoginCept.php)           Ok
-----------------------------------------------------------------


Time: 408 ms, Memory: 19.25Mb

OK (4 tests, 23 assertions)

mark@markubuntu:~/basic$ vendor/bin/codecept run -v functional
Codeception PHP Testing Framework v1.8.2
Powered by PHPUnit 3.7.30 by Sebastian Bergmann.

Functional Tests (4) --------------------------------------------
Modules: Filesystem, TestHelper, Yii2
-----------------------------------------------------------------
Trying to ensure that about works (AboutCept.php)           Ok
Trying to ensure that contact works (ContactCept.php)       Ok
Trying to ensure that home page works (HomeCept.php)        Ok
Trying to ensure that login works (LoginCept.php)           Ok
-----------------------------------------------------------------


Time: 231 ms, Memory: 28.75Mb

OK (4 tests, 23 assertions)

mark@markubuntu:~/basic$ vendor/bin/codecept run -v unit
Codeception PHP Testing Framework v1.8.2
Powered by PHPUnit 3.7.30 by Sebastian Bergmann.

Unit Tests (4) ------------------------------------------------------------------------------------------
Modules: CodeHelper
---------------------------------------------------------------------------------------------------------
Trying to test contact (tests\unit\models\ContactFormTest::testContact)                             Ok
Trying to test login no user (tests\unit\models\LoginFormTest::testLoginNoUser)                     Ok
Trying to test login wrong password (tests\unit\models\LoginFormTest::testLoginWrongPassword)       Ok
Trying to test login correct (tests\unit\models\LoginFormTest::testLoginCorrect)                    Ok
---------------------------------------------------------------------------------------------------------


Time: 88 ms, Memory: 14.75Mb

OK (4 tests, 14 assertions)

@Ragazzo
Copy link
Contributor Author

Ragazzo commented Feb 7, 2014

Since it is in branch but not in tag 1.8.2 i think we should use "codeception/codeception": "1.8.*@dev" for our application templates. Someone from core @samdark @cebe @qiangxue should handle this and travis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants