# |
Aug 21st 2019, 10:33 |
Nitrogen |
Sort of in the same vein as _serialize just works automagically. |
# |
Aug 21st 2019, 10:32 |
Nitrogen |
I will actually try that now. But thing is there's some sort of built-in exception renderer which takes care of internal cake errors - like missing data-view templates. So I was hoping there's a way to tap into that by adhering to some convention. |
# |
Aug 21st 2019, 10:27 |
neon1024 |
If I need them I tend to set an errors variable and pass that to _serialize |
# |
Aug 21st 2019, 10:26 |
Nitrogen |
spriz, that's neat, thanks! |
# |
Aug 21st 2019, 10:21 |
spriz |
or build something alike: https://github.com/FriendsOfCake/crud/blob/master/src/Error/ExceptionRenderer.php |
# |
Aug 21st 2019, 10:20 |
spriz |
Nitrogen: The easy way could be to use the Crud ExceptionRenderer |
# |
Aug 21st 2019, 10:19 |
Nitrogen |
hey, guys. how would one go about getting validation errors after asynchronous submit? [error] property is not exposed through _serialize. do I manually check getErrors() and build my response manually? |
# |
Aug 21st 2019, 10:00 |
eax |
:P |
# |
Aug 21st 2019, 10:00 |
spriz |
stupid duckduckgo led me to other one :) |
# |
Aug 21st 2019, 09:59 |
spriz |
that is for 3.x |
# |
Aug 21st 2019, 09:59 |
spriz |
Ah yes, FoC one |
# |
Aug 21st 2019, 09:59 |
eax |
Neat! |
# |
Aug 21st 2019, 09:59 |
eax |
I think it’s this one: https://github.com/FriendsOfCake/fixturize Right? |
# |
Aug 21st 2019, 09:58 |
spriz |
will only tear down stuff if it is changed |
# |
Aug 21st 2019, 09:58 |
eax |
Nice! Thanks @spriz :) |
# |
Aug 21st 2019, 09:58 |
spriz |
will go meep meep |
# |
Aug 21st 2019, 09:58 |
spriz |
https://github.com/lorenzo/cakephp-fixturize |
# |
Aug 21st 2019, 09:58 |
spriz |
@eax Fixturize it! |
# |
Aug 21st 2019, 09:57 |
eax |
Hmm, I’m gonna see if I can cut anything down, but I don’t think so :S |
# |
Aug 21st 2019, 09:56 |
alexdd55976 |
like 3-4 per fixture |
# |
Aug 21st 2019, 09:56 |
alexdd55976 |
but i only used necessary amount of datasets |
# |
Aug 21st 2019, 09:56 |
alexdd55976 |
i did all that on a local machine/test enviroment. 50 Tables/Fixtures. |
# |
Aug 21st 2019, 09:55 |
eax |
@alexdd55976 Well, I’m loading them in public $fixtures, and I think Cake tears them down and builds them in between each test? |
# |
Aug 21st 2019, 09:54 |
alexdd55976 |
per single test method? or for running all tests? |
# |
Aug 21st 2019, 09:53 |
eax |
@alexdd55976 Hmm, I am loading 22 Fixtures per test (Minimum amount, sadly :S) |
# |
Aug 21st 2019, 09:52 |
alexdd55976 |
maybe yours is very complex? |
# |
Aug 21st 2019, 09:51 |
alexdd55976 |
seems very long... in my old project i ran 350 tests with around 1000 assertion in about 3 min |
# |
Aug 21st 2019, 09:48 |
eax |
Cake3: Has anyone got any tips to speed up Integration Tests? I have 6 tests with 32 Assertions that take ~1.22 minutes to run. And I am about to expand that to about 19 times that, and I’d like to be able to run them often and fast :slightly_smiling_face: |
# |
Aug 21st 2019, 09:30 |
eax |
@admad IIRC the Americans “lost” a nuke up there, so I think Greenland has at least one WMD :P |
# |
Aug 21st 2019, 09:24 |
admad |
And Greenland doesn't have any WMDs too right? Else you guys won't be able to stop them from trying to "liberate" it. |
# |
Aug 21st 2019, 09:19 |
spriz |
I think lots of people here did not want him visiting, so it is all for the greater good thogh |
# |
Aug 21st 2019, 09:18 |
spriz |
what a douche ,:) :D ¯\_(ツ)_/¯ |
# |
Aug 21st 2019, 09:18 |
spriz |
Thanks! It was a rought fight, but I'm glad we managed to keep it! |
# |
Aug 21st 2019, 09:18 |
neon1024 |
@spriz Good job on not selling Greenland ;) |
# |
Aug 21st 2019, 09:00 |
dereuromark |
once that one is in "require-dev" I take the "almost" back :) |
# |
Aug 21st 2019, 09:00 |
alexdd55976 |
:) |
# |
Aug 21st 2019, 09:00 |
alexdd55976 |
> "almost" |
# |
Aug 21st 2019, 08:59 |
dereuromark |
pretty hard require though: https://github.com/cakephp/authentication/blob/2.x/composer.json#L13 :slightly_smiling_face: |
# |
Aug 21st 2019, 08:58 |
dereuromark |
hah, yeah, true. they are "almost" standalone^^ |
# |
Aug 21st 2019, 08:58 |
admad |
technically the auth libs are not cake dependent :slightly_smiling_face: |
# |
Aug 21st 2019, 08:57 |
dereuromark |
I also switched my 2.x branches to cake2 here for all my plugins for clarification. |