You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2023. It is now read-only.
The main scope for this project is to create error report in **JUnit** format that can be easly integrated in *Jenkins* or other tools that use this information.
12
+
The main scope for this project is to create error report in **JUnit** format that can be easly integrated in _Jenkins_ or other tools that use this information.
12
13
13
14
## How to use it
14
15
15
16
### Install
16
17
17
-
You need to include this library in your project as dev-dependency, it dependes on the version of phpstan you're using you should use a different version of `mavimo/phpstan-junit` library.
18
+
You need to include this library in your project as dev-dependency, it dependes on the version of phpstan you're using you should use a different version of `mavimo/phpstan-junit` library, this table will give you a dependency map:
18
19
19
-
#### PHPStan 0.10
20
+
|`phpstan/phpstan` version |`mavimo/phpstan-junit` version |
You should require this extension on `phpstan.neon` file in the root of your project or the file you specify to phpstan using the `--config` flag by referencing `extension.neon` file:
32
+
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set, otherwise take a look to _manual setup_ section below.
33
+
34
+
<details>
35
+
<summary><strong>Manual setup for PHPStan 0.11 and next</strong></summary>
36
+
if you don't want to use `phpstan/extension-installer`, you should require the `extension.neon` file on your `phpstan.neon.dist` file in the root of your project (or on the file you specify to phpstan using the `--config` flag):
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set; if you don't want to use `phpstan/extension-installer`, you should require the `extension.neon` file on your `phpstan.neon.dist` file in the root of your project (or on the file you specify to phpstan using the `--config` flag):
53
+
<details>
54
+
<summary><strong>Manual setup for PHPStan 0.10</strong></summary>
55
+
<br />
56
+
You should require this extension on `phpstan.neon` file in the root of your project or the file you specify to phpstan using the `--config` flag by referencing `extension.neon` file:
- *phpunit* is :white_check_mark:, you can run it using `vendor/bin/phpunit`
74
-
- *phpstan* is :white_check_mark:, you can run it using `vendor/bin/phpstan analyse`
75
-
- *phpcs* is :white_check_mark:, you can run it using `vendor/bin/phpcs`
76
-
- *code coverage* will not decrease (or there are good reason to decrease it), you can check the current coverage using `phpdbg -qrr ./vendor/bin/phpunit --coverage-text`
87
+
- _phpunit_ is :white_check_mark:, you can run it using `vendor/bin/phpunit`
88
+
- _phpstan_ is :white_check_mark:, you can run it using `vendor/bin/phpstan analyse`
89
+
- _phpcs_ is :white_check_mark:, you can run it using `vendor/bin/phpcs`
90
+
- _code coverage_ will not decrease (or there are good reason to decrease it), you can check the current coverage using `phpdbg -qrr ./vendor/bin/phpunit --coverage-text`
77
91
78
92
If you have any question feel free to open a issue or contact me!
0 commit comments