Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sweetchuck/robo-phpunit


https://github.com/sweetchuck/robo-phpunit

phpunit robo-tasks

Last synced: 12 days ago
JSON representation

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