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 setup #10

Open
fuzzek opened this issue Jun 23, 2013 · 3 comments
Open

Codeception setup #10

fuzzek opened this issue Jun 23, 2013 · 3 comments
Labels

Comments

@fuzzek
Copy link

fuzzek commented Jun 23, 2013

Hi Tony,
just starting to play with composer and yiinitializr. Before I used yii-environment in my projects.. everything works really great so far with setup, but I try to encapsulate codeception (specially config).

My structure is inspired with phundament/app:

(my protected/tests directory)
scr

to run unit tests I need bootstrap.php (yii setup with test config). Do you thing that I need to create new environment like test-unit? Is there a way to quickly change env with composer or just change it in env.lock?

Jack

@tonydspaniard
Copy link
Owner

I think the best way is to create new environment, nevertheless, I highly recommend you to have a look at the new mocking features implemented by Michael in Codeception. Will invite him to help you out on this.

@DavertMik
Copy link

If you are going to get tested a few applications (frontend and backend) you should use test structure that involves namespaces.

http://codeception.com/docs/08-Customization

Actually there will be one global codeception.yml in the root to rule them all and suites in frontend/tests, backend/tests, api/tests.

As for environment, yes, you should add test env for all those applications.

@Borales
Copy link
Contributor

Borales commented Aug 28, 2013

@DavertMik should we use this module in functional suite?
I mean, how can I set up Codeception right to use it with several config files (common/config + app config + env config)?

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

No branches or pull requests

4 participants