Feature request from Flyingmana, posted on GitHub Oct 12, 2015
To make debugging cronjobs a lot easier, it would be great if I can execute them directly via CLI
Comment from antonkril, posted on GitHub Oct 12, 2015
Also you can (should) write integration tests for them.
Btw, doesn't custom cron group work for you?
Comment from Flyingmana, posted on GitHub Oct 12, 2015
Can I find documentation or an example for a integration test of cron?
I tried custom cron groups, but I can not rerun a job multiple times in less then a minute.
Also, I dont deploy phpunit to production environment, so I cant run the job there again to see, if the failing is random or reproducable, or just rerun it after changing a setting I forgot.
Are this enough reasons to have this?
Comment from alankent, posted on GitHub Oct 12, 2015
Do you mean more than 'magento cron:run'? You want to select the specific code to run? Maybe add a command line option to the existing command?
yes, the specific code, and then having this one job directly running.
A command line option would be probably enough for this.