orchestral / testbench

Laravel Testing Helper for Packages Development
https://packages.tools/testbench
MIT License
2.11k stars 136 forks source link

What is workbench? #389

Closed SlimDeluxe closed 10 months ago

SlimDeluxe commented 10 months ago

Hi, thank you for your work on this package. I just updated testbench in a package I am developing and noticed you now have a "workbench" thing. It is not clear to me what it's purpose is and how to use it. The docs only have the "introduction" part. Could you please provide some explanation with an example?

Edit: I did try to run the workbench:install command and it created some script entries in composer.json and a workbench dir in project root with what looks like an app skeleton. Still no clue what should I do with it :smile:

crynobone commented 10 months ago

See https://youtu.be/fm628IJ1OKw?si=_p7qHyjbjMsnYspS

SlimDeluxe commented 10 months ago

Okay, saw it. If I understood it correctly, you can use the workbench dir to set up an app to test your package as it would be used in an app, instead of just running the tests with a skeleton? Currently, I have a sample app where I added the package from a local dir (which composer installs as a symlink) to allow me to test it while I develop. Workbench would now replace this if I am not mistaken.

crynobone commented 10 months ago

yeah, that's correct

SlimDeluxe commented 10 months ago

Great, thank you for the quick support :) All the best in the future