Zend certified PHP/Magento developer

Magento 2 export orders grid csv programmatically

I have been searching how to export the Orders csv that is found in Orders Grid, I have not found anything regarded to that.

This is the only file I have found about exporting orders to csv.

/var/www/html/emall_dev/vendor/magento/module-reports/Test/Unit/Controller/Adminhtml/Report/Customer/ExportOrdersCsvTest.php

But it’s a test file, I don’t know what Test folder means.
I need to create a cronjob to constantly export the order grid programmatically.

Thanks!