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

remove codeception #40

Open
ruskiyos opened this issue Feb 28, 2018 · 9 comments
Open

remove codeception #40

ruskiyos opened this issue Feb 28, 2018 · 9 comments

Comments

@ruskiyos
Copy link
Contributor

Looking at our tests, they are ALL unit tests.
There is really no point in loading in all of codeception module if we are using only simple assertions.
phpunit weighs so much less and is not much different than codeception (since codeception just wraps phpunit)

@alexcoffee
Copy link
Collaborator

You're right and I'm ok with removing codeception. In reality though we don't have that many tests yet, do the gains justify the cost of converting?

@ruskiyos
Copy link
Contributor Author

much of the classes would remain the same, except for $I would be switched to $this and some metadata comments would change.
also adding a phpunit.xml file and we can additionally add just the AspectMock component if we ever need to mock
it would probably ONLY take around 2 hours to convert current tests

@iampersistent
Copy link
Contributor

Why not codeception? I don't quite understand what weight has to do with the decision.

@alexcoffee
Copy link
Collaborator

For us it doesn't make sense because we don't care about weight and we are used to codeception. But if we wanted to make it into a public library then pure phpunit would be the more common dependency.

@ruskiyos
Copy link
Contributor Author

if I have a project that uses only phpunit, why should codeception be a required (dev) package.

@iampersistent
Copy link
Contributor

@alexcoffee I don't think codeception is a deterrent to people using a library.

@ruskiyos This project is using codeception. :)

@iampersistent
Copy link
Contributor

I don't care enough to die on this hill, but I don't see any value in changing it.

@alexcoffee
Copy link
Collaborator

lol I don't care enough to die on the hill either and I don't see the benefit in changing it for us. But I do see the value in "don't require more than you use".

@ruskiyos
Copy link
Contributor Author

this is a public packagist repo, not a project lol. that's why I want to remove the dependency on codeception. if someone has codeception installed, they will automatically have phpunit, but not the other way around
When I released our autopilot plugin to the world, there were some people who contributed but were not familiar with codeception. i think

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

3 participants