robo-coveralls-kit is a library to send the report to the coveralls.
Installation of Robo PHP Task Runner will be mandatory to use it.
Specify the configuration file, you can send the file the report just run.
For more information about the configuration file, please refer to the coveralls-kit.
class RoboFile extends Tasks
{
use \coverallskit\robo\loadTasks;
public function coverallsUpload()
{
$result = $this->taskCoverallsKit()
->configureBy('coveralls.toml')
->run();
return $result;
}
}
Only to output the report to confirm you can use the saveOnly method.
Just generate a report file, but does not upload.
public function coverallsTest()
{
$result = $this->taskCoverallsKit()
->configureBy('coveralls.toml')
->saveOnly()
->run();
return $result;
}
Please try the following command.
composer install
composer test