Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sweetchuck/robo-phpunit
https://github.com/sweetchuck/robo-phpunit
phpunit robo-tasks
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sweetchuck/robo-phpunit
- Owner: Sweetchuck
- Created: 2018-11-14T20:09:51.000Z (almost 6 years ago)
- Default Branch: 3.x
- Last Pushed: 2024-08-05T15:53:48.000Z (3 months ago)
- Last Synced: 2024-10-04T22:34:54.405Z (about 1 month ago)
- Topics: phpunit, robo-tasks
- Language: PHP
- Size: 259 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Robo task to run PHPUnit related tasks
[![CircleCI](https://circleci.com/gh/Sweetchuck/robo-phpunit/tree/2.x.svg?style=svg)](https://circleci.com/gh/Sweetchuck/robo-phpunit/?branch=2.x)
[![codecov](https://codecov.io/gh/Sweetchuck/robo-phpunit/branch/2.x/graph/badge.svg?token=HSF16OGPyr)](https://app.codecov.io/gh/Sweetchuck/robo-phpunit/branch/2.x)## Install
`composer require --dev sweetchuck/robo-phpunit`
## Task - taskPHPUnitListGroupsTask
```php
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
## Task - taskPHPUnitListTestsTask
```php
## Task - taskPHPUnitParseXml
```php
## Task - taskPHPUnitRun
```php