From 1116034fe6eaad0679d99084a87d07d3220ad935 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Sun, 28 Mar 2021 22:18:54 +0200 Subject: [PATCH] Mark PHPUnit test as risky when it does not have a @covers annotation --- CHANGELOG.md | 1 + phpunit.xml.dist | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b9bc87..109000a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Common and useful classes, methods, exceptions etc. 1. Change mode of `Xdebug` to `coverage` in Docker's configuration to make it possible to generate code coverage by `PHPUnit` +2. Mark PHPUnit test as risky when it does not have a `@covers` annotation # 1.1.1 diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 13fe570..acd207b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -7,6 +7,7 @@ bootstrap="vendor/autoload.php" colors="true" executionOrder="random" + forceCoversAnnotation="true" verbose="true" >