Repository navigation
[10.x] Passthru test options - #48335
Conversation
|
Man, thank you so much for making this so much simpler than I was able to. I've been fighting it all night and yours looks way better. |
|
Actually, I spoke too soon. For whatever reason, even if you set |
|
I won't actually send in my PR, but you can see what I was trying here: 1cbb6da |
|
I definitely like the sniff out. But I'd like wait and see what the core team thinks about adding tests with the For me the win is passing the test options down to the controller. Personally, I'm comfortable writing |
|
Totally understand. Thanks for clarifying. |
14d5206 to
d6466ce
Compare
This is a replacement for #48319 to simply passthru the
--testor--pestoption to the underlyingmake:controllercall. This allows the controller test to also be created.In addition, theAfter sleeping on it, the hard truth is most devs don't write tests. As such, I think forcing tests with the--testoption is automatically set totruewhen the-aoption is used to generate a default test, unless the--pestoption is set to specifically generate Pest tests.-aoption would make "extra" files. Those that write tests can run:make:model -a --test. Once this PR is merged, running that would properly generate a test for the model and the controller.