sweetchuck / robo-phpunit
Robo task to run PHPUnit related commands
Installs: 97 791
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
Type:robo-tasks
Requires
- php: >=7.2
- ext-dom: *
- ext-pcre: *
- consolidation/robo: ^2.0
- danielstjules/stringy: ^3.1
- sweetchuck/cli-cmd-builder: ^0.0
- sweetchuck/utils: ^0.1
Requires (Dev)
- ext-json: *
- codeception/codeception: ^4.0
- codeception/module-asserts: ^1.1
- squizlabs/php_codesniffer: ^3.5
- sweetchuck/codeception-module-robo-task-runner: ^0.7
- sweetchuck/git-hooks: ^0.0
- sweetchuck/robo-git: ^0.2
- sweetchuck/robo-phpcs: ^0.1
- symfony/error-handler: ^5.0
- symfony/finder: ^4.0
- webmozart/path-util: ^2.3
Suggests
This package is auto-updated.
Last update: 2024-11-09 19:55:06 UTC
README
Install
composer require --dev sweetchuck/robo-phpunit
Task - taskPHPUnitListGroupsTask
<?php class RoboFile extends \Robo\Tasks { use \Sweetchuck\Robo\PHPUnit\PHPUnitTaskLoader; /** * @command phpunit:list-groups */ public function cmdListGroups() { return $this ->collectionBuilder() ->addTask($this->taskPHPUnitListGroups()) ->addCode(function (\Robo\State\Data $data): int { $output = $this->output(); foreach ($data['phpunit.groupNames'] as $groupName) { $output->writeln($groupName); } return 0; }); } }
Run vendor/bin/robo phpunit:list-groups
Example output:
foo bar
Task - taskPHPUnitListSuitesTask
<?php class RoboFile extends \Robo\Tasks { use \Sweetchuck\Robo\PHPUnit\PHPUnitTaskLoader; }
Run vendor/bin/robo phpunit:
Example output:
Task - taskPHPUnitListTestsTask
<?php class RoboFile extends \Robo\Tasks { use \Sweetchuck\Robo\PHPUnit\PHPUnitTaskLoader; }
Run vendor/bin/robo phpunit:
Example output:
Task - taskPHPUnitParseXml
<?php class RoboFile extends \Robo\Tasks { use \Sweetchuck\Robo\PHPUnit\PHPUnitTaskLoader; }
Run vendor/bin/robo phpunit:
Example output:
Task - taskPHPUnitRun
<?php class RoboFile extends \Robo\Tasks { use \Sweetchuck\Robo\PHPUnit\PHPUnitTaskLoader; }
Run vendor/bin/robo phpunit:
Example output: