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

Optional --pest test suite #36

Open
alexmartinfr opened this issue May 26, 2020 · 4 comments
Open

Optional --pest test suite #36

alexmartinfr opened this issue May 26, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@alexmartinfr
Copy link

alexmartinfr commented May 26, 2020

Would you be interested in a --pest option which would convert the existing PHPUnit test suite to Pest tests?
I'm converting it on my project anyway, and it would be ideal if the work could be reused by others.

@imliam
Copy link
Contributor

imliam commented May 27, 2020

One thing we're generally trying not to do in this preset is to maintain multiple files that do the same thing, as you can see by the discussion in #12 we'd rather programatically swap things out when we can. If we have to maintain things twice over (2 sets of the same views, 2 sets of the same tests, etc.) it's very easy for things to get out of sync.

Do you think this would be achievable with Pest instead of just having a duplicated stubs directory?

@danharrin danharrin added the enhancement New feature or request label May 28, 2020
@alexmartinfr
Copy link
Author

Those are valid concerns indeed.

Anyway, shortly after I posted this issue someone undertook an experiment to convert PHPUnit's tests to Pest programmatically, so this might be the ideal solution.

@imliam
Copy link
Contributor

imliam commented Jul 19, 2020

@alexmartinfr do you happen to know what happened with that experiment to convert PHPUnit tests to Pest and if it's a viable thing to use here?

@alexmartinfr
Copy link
Author

@imliam It's still under development at this time, it is technically usable but has some rough edges.
If you want to try it, here is the repo: https://github.com/pestphp/drift

It's still too early to include this tool as an automation on your preset though.
Pest itself is also moving fast and it should have frequent updates in the following months.

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

No branches or pull requests

3 participants