8000 Code coverage tests · middlewares/http-authentication@846e34d · GitHub
[go: up one dir, main page]

Skip to content

Commit 846e34d

Browse files
committed
Code coverage tests
1 parent d2c5149 commit 846e34d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
vendor
22
composer.lock
33
.php_cs.cache
4+
coverage

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@ Good pull requests – patches, improvements, new features – are a fantastic h
4545
```sh
4646
composer test
4747
```
48+
49+
To get code coverage information execute the following comand:
50+
51+
```sh
52+
composer coverage
53+
```
54+
55+
Then, open the `./coverage/index.html` file in your browser.

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"phpunit",
4444
"phpcs"
4545
],
46-
"cs-fix": "php-cs-fixer fix ."
46+
"cs-fix": "php-cs-fixer fix .",
47+
"coverage": "phpunit --coverage-html=coverage"
4748
}
4849
}

0 commit comments

Comments
 (0)
0