Skip to content

Commit c2104a3

Browse files
committed
Initial commit
0 parents  commit c2104a3

File tree

8 files changed

+3706
-0
lines changed

8 files changed

+3706
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/vendor/
2+
.php_cs.cache

.php_cs.dist

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in(__DIR__.'/src')
5+
;
6+
7+
return PhpCsFixer\Config::create()
8+
->setCacheFile(__DIR__.'/.php_cs.cache')
9+
->setRiskyAllowed(false)
10+
->setRules([
11+
'@PSR2' => true,
12+
'@Symfony' => true,
13+
'yoda_style' => false,
14+
'trailing_comma_in_multiline_array' => false,
15+
'single_blank_line_before_namespace' => true,
16+
'no_leading_namespace_whitespace' => true,
17+
'ordered_imports' => true,
18+
'no_unused_imports' => true,
19+
'phpdoc_var_without_name' => false
20+
])
21+
->setFinder($finder)
22+
;

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2018 Maarten de Boer <maarten@cloudstek.nl>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Fancy Dot Reporter
2+
3+
This is a fork from the [DotReporter of Codeception](https://github.com/Codeception/Codeception/tree/2.5/ext#dotreporter) and adds some fancy enhancements that make it behave more like PHPUnit's reporter.
4+
5+
#### Requirements
6+
7+
* Codeception 2.3+
8+
* PHP 5.4+
9+
10+
#### Example
11+
12+
```sh
13+
.......... 10 / 75 ( 13%)
14+
.......... 20 / 75 ( 28%)
15+
.......... 30 / 75 ( 40%)
16+
.......... 40 / 75 ( 54%)
17+
.......... 50 / 75 ( 67%)
18+
.......... 60 / 75 ( 80%)
19+
.......... 70 / 75 ( 94%)
20+
..... 75 / 75 (100%)
21+
22+
Time: 2.07 seconds, Memory: 20.00MB
23+
24+
OK (75 tests, 124 assertions)
25+
```
26+
27+
`.` when the test succeeds.
28+
`F` when an assertion fails while running the test method.
29+
`E` when an error occurs while running the test method.
30+
`S` when the test has been skipped.
31+
`I` when the test is marked as being incomplete or not yet implemented.
32+
33+
## Installation
34+
35+
### Using composer
36+
37+
1. Install using composer
38+
```sh
39+
composer require --dev cloudstek/codeception-fancy-dot-reporter
40+
```
41+
2. Enable the extension (see [usage](#usage)).
42+
43+
### Manually
44+
45+
1. Clone the repository or download and extract the [latest release](https://github.com/Cloudstek/codeception-fancy-dot-reporter/releases/latest).
46+
2. Require the `src/DotReporter.php` file in `tests/_bootstrap.php`
47+
3. Enable the extension (see [usage](#usage)).
48+
49+
## Usage
50+
51+
To enable the extension specify it with `—ext` or add it to the list of enabled extensions in your `codeception.yml`.
52+
53+
With `—ext` option:
54+
55+
```sh
56+
vendor/bin/codeception run --ext "Cloudstek\Codeception\Extension\DotReporter"
57+
```
58+
59+
With `codeception.yml`:
60+
61+
```yaml
62+
extensions:
63+
enabled:
64+
- Cloudstek\Codeception\Extension\DotReporter
65+
```
66+
67+
### Configuration options
68+
69+
See the [official documentation](https://codeception.com/docs/08-Customization#Configuring-Extension) on how to configure Codeception extensions. See the list below for available options.
70+
71+
#### columns
72+
73+
*Type: integer*
74+
75+
Number of columns to use for progress output. Defaults to the width of the output console, which is always the max.
76+
77+
## License
78+
79+
See [LICENSE](./LICENSE)
80+

composer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "cloudstek/codeception-fancy-dot-reporter",
3+
"description": "Enhanced version of the DotReporter found in Codeception",
4+
"license": "MIT",
5+
"version": "1.0.0",
6+
"authors": [
7+
{
8+
"name": "Maarten de Boer",
9+
"email": "maarten@cloudstek.nl"
10+
}
11+
],
12+
"autoload": {
13+
"psr-4": {
14+
"Cloudstek\\Codeception\\Extension\\": "src/"
15+
}
16+
},
17+
"require": {},
18+
"require-dev": {
19+
"codeception/codeception": "^2.3",
20+
"friendsofphp/php-cs-fixer": "^2.13",
21+
"squizlabs/php_codesniffer": "^3.3"
22+
}
23+
}

0 commit comments

Comments
 (0)