Not sure if I understood you quite right, so instead of call vendor/bin/codecept g:suite you want to run artisan tests:setup if so, just create a new artisan command with php artisan make:command SetupTests witch will looks like
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class SetupTests extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'tests:setup';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Setup tests description';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->exec('call vendor/bin/codecept g:suite');
}
}
exec or execute or call I can't remember. Hope it helps :)