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
Application config as array (Yii1 Module) #267
Conversation
Hm, dont know if it really needed, can u paste maybe some code of your suite .yml file? Or i think that if it really needed than it must be an |
About the Cests, I am using the latest stable via composer, Codeception 1.0.6.3. Regarding the config parameter from the Yii docs:
http://www.yiiframework.com/doc/api/1.1/CApplication#__construct-detail My use case is the following: I'd like to setup a complete test suite with acceptance, functional and unit tests. As far as I understood from the manual and source-code, the convention of the Yii1 Codeception module is to return an array with two elements, app class and config, instead of creating a web app, like in the default Yii Also, in my So for now I use a But nonetheless I'd support the changes in the pull request, because Yii works that way and you may change config values, if needed, eg. plug in the |
@Ragazzo i'm leaving decision to merge this or not to you. Ok? Personally I'd like to see in commit documentation for module updated to reflect this change. |
Hm, right, i also was thinking about this when creating a Yii1 module, but i was trying to make it easy-install, so thats why i chose the way to pass confgi path as a P.S. as for me i do use codeception in some another way i guess: |
Yes, let me know what should be changed. |
You can also see here simple new cest-format use-case for tests: |
Reformat: just delete |
Just to make sure, like this:
Where can I find the coding standard? I already wondered about the tabs ;) |
Yes, like that. Unfortunately there is no coding standard in codeception(( so i prefer to use some |
will merge it, some code-style refactoring can be done later) |
Application config as array (Yii1 Module)
It is also will be good to hear your opinion/thoughts on idea of |
Hey, thanks. To be honest I've never noticed, that Yii uses tabs ;) btw: I'd like to ask some more questions over here: http://www.yiiframework.com/forum/index.php/topic/39379-yii-codeception-module/ I hope you'll have a look. |
yes, you can ask questions there, i also check 1-2 times in day yii-en topic there)) but for now as i can see last message is mine there) |
About tags: Sorry, I am not very experienced with testing - I've no clue atm what you're trying to do?! But could you add (or point me to) a section where Cest and Cept are explained in detail, like what's the difference between them and Unit test - I found just one paragraph in the docs. |
Ok, so cests was refactored and old version of them was dropped, so i think article is really needed, ok i will try to get some more free time for this. As for unit-tests as i said before i use classic phpunit unit-tests so i think that it is more question for the @DavertMik to write more guides about unit-testing in codeception, so some more things that i can say here is that you may already noticed yii plugin directory( |
Like in CWebApplication in Yii, this patch allows you to also pass a configuration array to initialize the app and run the tests.