Optional --pest test suite
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.
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?
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.
@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?
@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.