consolidation/robo
Robo is a modern PHP task runner for automating common development workflows. Define tasks in a RoboFile with a clean OO API to run tests, build assets, deploy, and more. Extensible via plugins, with useful built-in tasks and CLI tooling.
Runs atoum tests
<?php
$this->taskAtoum()
->files('path/to/test.php')
->configFile('config/dev.php')
->run()
?>
tags($tags)
param string|string[] $tags
lightReport()
return $this
tap()
return $this
bootstrap($file)
param string $file
configFile($file)
param string $file
debug()
return $this
files($files)
param $files
directories($directories)
param $directories
setProcessInput($input)
param resource|string $input
dir($dir)
param string $dir
arg($arg)
param string $arg
args($args)
param string|string[] $args
rawArg($arg)
param string $arg
option($option, $value = null, $separator = null)
param string $option
options(array $options, $separator = null)
param array $options
optionList($option, $value = null, $separator = null)
param string $option
setOutput($output)
param \Symfony\Component\Console\Output\OutputInterface $output
Executes Behat tests
<?php
$this->taskBehat()
->format('pretty')
->noInteraction()
->run();
?>
stopOnFail()
return $this
noInteraction()
return $this
config($config_file)
param string $config_file
colors()
return $this
noColors()
return $this
suite($suite)
param string $suite
verbose($level = null)
param string $level
format($formater)
param string $formater
setProcessInput($input)
param resource|string $input
dir($dir)
param string $dir
arg($arg)
param string $arg
args($args)
param string|string[] $args
rawArg($arg)
param string $arg
option($option, $value = null, $separator = null)
param string $option
options(array $options, $separator = null)
param array $options
optionList($option, $value = null, $separator = null)
param string $option
setOutput($output)
param \Symfony\Component\Console\Output\OutputInterface $output
Executes Codeception tests
<?php
// config
$this->taskCodecept()
->suite('acceptance')
->env('chrome')
->group('admin')
->xml()
->html()
->run();
?>
suite($suite)
param string $suite
test($testName)
param string $testName
group($group)
param string $group
excludeGroup($group)
param string $group
json($file = null)
param string $file
xml($file = null)
param string $file
html($dir = null)
param string $dir
tap($file = null)
param string $file
configFile($file)
param string $file
coverage($cov = null)
param null|string $cov
coverageXml($xml = null)
param string $xml
coverageHtml($html = null)
param string $html
debug()
return $this
noRebuild()
return $this
noExit()
return $this
failGroup($failGroup)
param string $failGroup
setProcessInput($input)
param resource|string $input
dir($dir)
param string $dir
arg($arg)
param string $arg
args($args)
param string|string[] $args
rawArg($arg)
param string $arg
option($option, $value = null, $separator = null)
param string $option
options(array $options, $separator = null)
param array $options
optionList($option, $value = null, $separator = null)
param string $option
setOutput($output)
param \Symfony\Component\Console\Output\OutputInterface $output
Runs PHPUnit tests
<?php
$this->taskPHPUnit()
->group('core')
->bootstrap('test/bootstrap.php')
->run()
?>
filter($filter)
param string $filter
group($group)
param string $group
excludeGroup($group)
param string $group
json($file = null)
param string $file
xml($file = null)
param string $file
tap($file = null)
param string $file
bootstrap($file)
param string $file
configFile($file)
param string $file
debug()
return $this
files($files)
file($file)
param string $file Path to file to test.
setProcessInput($input)
param resource|string $input
dir($dir)
param string $dir
arg($arg)
param string $arg
args($args)
param string|string[] $args
rawArg($arg)
param string $arg
option($option, $value = null, $separator = null)
param string $option
options(array $options, $separator = null)
param array $options
optionList($option, $value = null, $separator = null)
param string $option
setOutput($output)
param \Symfony\Component\Console\Output\OutputInterface $output
Executes Phpspec tests
<?php
$this->taskPhpspec()
->format('pretty')
->noInteraction()
->run();
?>
stopOnFail()
noCodeGeneration()
quiet()
verbose($level = null)
param string $level
noAnsi()
return $this
noInteraction()
return $this
config($config_file)
param string $config_file
format($formater)
param string $formater
setProcessInput($input)
param resource|string $input
dir($dir)
param string $dir
arg($arg)
param string $arg
args($args)
param string|string[] $args
rawArg($arg)
param string $arg
option($option, $value = null, $separator = null)
param string $option
options(array $options, $separator = null)
param array $options
optionList($option, $value = null, $separator = null)
param string $option
setOutput($output)
param \Symfony\Component\Console\Output\OutputInterface $output
How can I help you explore Laravel packages today?