# |
Oct 3rd 2016, 14:23 |
Neon1024 |
Well, using vendor/bin/phpunit with a proper phpunit.xml will run the configured test suites automatically |
# |
Oct 3rd 2016, 14:21 |
avi |
Any ideas and thoughts to make running tests locally on a developerâ??s machine easier (with just 1 command)? I want something like `bin/cake myApp test` -> this should run both `phpunit` and `phpcs`. Is writing a shell script the only way? |
# |
Oct 3rd 2016, 14:19 |
Neon1024 |
unorthodox, Just because, RE: This morning /cc birdy247 - echo sprintf($this->markup, "tv channels $providerClass", "$chans channels $hd"); |
# |
Oct 3rd 2016, 14:17 |
maikh |
Is there someone who can help to finish my project? For money of course. |
# |
Oct 3rd 2016, 13:59 |
dakota |
By definition if the servers changed, then something changed |
# |
Oct 3rd 2016, 13:59 |
dakota |
@birdy247 â??Adamant that nothing changedâ? does not work with a â??migration of serversâ? :) |
# |
Oct 3rd 2016, 13:57 |
maikh |
@dakota hm, i think this is not possible for me... |
# |
Oct 3rd 2016, 13:50 |
Neon1024 |
In my own plugins, without needing an application, as there is no app comitted to my repo, so I guess perhaps I ran the tests inside an application, rather than just the plugin in isolation |
# |
Oct 3rd 2016, 13:49 |
Neon1024 |
Whatâ??s really odd is that Iâ??ve done it before |
# |
Oct 3rd 2016, 13:49 |
Neon1024 |
I have too much to get done to spend hours figuring it out |
# |
Oct 3rd 2016, 13:49 |
Neon1024 |
But if itâ??s not doable within 30 minutes, then itâ??s not worth doing at all |
# |
Oct 3rd 2016, 13:49 |
Neon1024 |
Shame, Iâ??d have liked to have some basic tests in place |
# |
Oct 3rd 2016, 13:48 |
Neon1024 |
I guess Iâ??m not writing tests then |
# |
Oct 3rd 2016, 13:47 |
dereuromark |
I pulled basically an empty app as skeleton around the plugin for testing |
# |
Oct 3rd 2016, 13:47 |
dereuromark |
You could look into some of my plugins which have tests |
# |
Oct 3rd 2016, 13:47 |
dereuromark |
in 2.x it was annoying as it needs an app here |
# |
Oct 3rd 2016, 13:47 |
Neon1024 |
..and I canâ??t find a repo with a setup which works |
# |
Oct 3rd 2016, 13:46 |
Neon1024 |
Running tests directly with phpunit isnâ??t covered in the book |
# |
Oct 3rd 2016, 13:46 |
Neon1024 |
But the App class assumes you have an application |
# |
Oct 3rd 2016, 13:46 |
Neon1024 |
Which means I to bootstrap stuff in my Test/bootstrap.php |
# |
Oct 3rd 2016, 13:46 |
Neon1024 |
So I canâ??t call Console/cake test |
# |
Oct 3rd 2016, 13:45 |
Neon1024 |
As itâ??s a plugin, so doesnâ??t have an application, which the bootstrap file seems to assume |
# |
Oct 3rd 2016, 13:45 |
Neon1024 |
Iâ??m really struggling |
# |
Oct 3rd 2016, 13:45 |
Neon1024 |
How can I test my helper in Cake 2 |
# |
Oct 3rd 2016, 13:39 |
birdy247 |
who are adamant that nothing has changed |
# |
Oct 3rd 2016, 13:39 |
birdy247 |
and it suddenly stopped after my hosting company performed a migration of servers |
# |
Oct 3rd 2016, 13:38 |
birdy247 |
^^ This was working perfectly until 2 days ago |
# |
Oct 3rd 2016, 13:38 |
birdy247 |
What would typically lead to a connection timeout when sending Smtp mail |
# |
Oct 3rd 2016, 13:33 |
dereuromark |
Just blogged again after months, about migration plugin in 2.x apps :slightly_smiling_face: http://www.dereuromark.de/2016/10/03/use-3-x-migrations-for-your-2-x-cakephp-app/ |
# |
Oct 3rd 2016, 13:12 |
maikh |
hm, sounds logical... |
# |
Oct 3rd 2016, 13:12 |
hmic |
if the client decides to send all, replace whats in like you do already |
# |
Oct 3rd 2016, 13:12 |
hmic |
thats the thing to do. |
# |
Oct 3rd 2016, 13:12 |
hmic |
+1 @dakota |
# |
Oct 3rd 2016, 13:11 |
dakota |
likewise, if something has changed, it should only be sending the data that did change |
# |
Oct 3rd 2016, 13:11 |
dakota |
My opinion here is that your js/client side code should not be sending a request to the server if data hasnâ??t changed |
# |
Oct 3rd 2016, 13:11 |
maikh |
yes, youre right. but i dont have a other idea... im not the high end coder ;) |
# |
Oct 3rd 2016, 13:09 |
hmic |
its is not a feasable solution at any scale bigger than your dev box :p |
# |
Oct 3rd 2016, 13:09 |
hmic |
*and* you put a lot of stress to your database still if you check for the data every second when your js sends in data - which you will need to admit is completely pointless if nothing changed |
# |
Oct 3rd 2016, 13:09 |
maikh |
hmmm... where then? |
# |
Oct 3rd 2016, 13:08 |
hmic |
maikh: its not the place to do it |
# |
Oct 3rd 2016, 13:05 |
maikh |
@dakota would it possible to check for existing data in the Entity Class? |