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

Preferred way to start Codeception is now ./vendor/bin/codecept? #4975

Closed
ThomasLandauer opened this issue May 16, 2018 · 6 comments
Closed

Comments

@ThomasLandauer
Copy link
Member

The docs are inconsistent about the CLI command to run Codeception:

So what's the best way now? How can people find out? I'll update the docs if you tell me.

@Naktibalda
Copy link
Member

vendor/bin/ is a default composer location for executable files.
I wasn't aware that something creates files in bin/, probably installer of some package does that.

@ThomasLandauer
Copy link
Member Author

So I should change https://codeception.com/for/symfony to ./vendor/bin/codecept?

@johannesschobel
Copy link
Contributor

Hey @ThomasLandauer ,

i think, this also depends on the OS you are working on, right?
On *nix OS you may simply call /vendor/bin/codecept run ... but on Windows you need to call call /vendor/bin/codecept run ... (notice the call before).

@ThomasLandauer
Copy link
Member Author

@Naktibalda: In my Symfony 3 project, I don't even have a vendor/bin directory. I have a file bin/codecept, and it is a symlink to vendor/codeception/codeception/codecept. This was certainly installed that way by Codeception itself.

@DavertMik: The docs should be (a) consistent and (b) work out of the box (i.e. copy-paste) for new installations. So let's go for ./vendor/bin/codecept?

@johannesschobel
Copy link
Contributor

johannesschobel commented May 28, 2018

hey @ThomasLandauer ,

on my windows dev machine i cannot run ./vendor/bin/codecept ... in order to run a specific command. I need to use the call keyword before the actual command.. So for me (on Windows) it would look like this:

call vendor/bin/codecept ...

Maybe someone can mention this somewhere in the docs? :D

@SamMousa
Copy link
Collaborator

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

5 participants