Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128423 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 8DF601A00BC for ; Thu, 7 Aug 2025 16:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1754582498; bh=zvQPRuLAWnvQiMlJVJ2XRnXT/TO50Iok1wDqjU9hP+s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ojg89PrXWsSuMr1WTjLSoIzOFVSRIwBYpcZF1gyX9yNllBQ+csyiiQkdABxwuLt3c NRvGYYIo9Efr+j+u7klrOtXVx5SB8eNs2QekIXXPAS0otl6jNMB39/eGzP39jwBLzj ki3jsuAJu6bI1f5PRYBS1EjSYdPD1gYbABAtV3ykLcrMHK65+TRPTN5gr+G/JW8GBq 5HXtmoeJ3ehJzNIO/QpIAqqexjaYt4zf2MOsLAQtKWeazbzVqqoJ+/2K2hOLmxgfCn dWvH1Zh3zUna7WxjcbzNqeB++3Rh1F5wTjiJuAiAfbnwjtG8RK2qSAVLnGIBaLaKCN gZ1Zpmn+pCHcg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3886F18005B for ; Thu, 7 Aug 2025 16:01:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 7 Aug 2025 16:01:36 +0000 (UTC) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 89087240027 for ; Thu, 7 Aug 2025 18:03:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.de; s=2017; t=1754582594; bh=zvQPRuLAWnvQiMlJVJ2XRnXT/TO50Iok1wDqjU9hP+s=; h=MIME-Version:Date:From:To:Cc:Subject:Message-ID:Content-Type: Content-Transfer-Encoding:From; b=oSnyZkWEsepY+ZcKzdEPKQP25c+Gvc8WphmwOytHXKks81EICrRyR2cfFmcinkdE4 X8+QLBymqtBCeO2sQtXuMtM6aBmkV91gobGraEBU3HfiqR53iJGslBDo/8h8U72BZ5 sO0NBw5KWsJfSaH1Dhr2dCSYobOfHyZmrHoucqG6Sge7WgTMhlXEBNP6cwRqG6t+1V i7q0tbyhIJNQpYpaa1o8ZON5csaTbE7ydbOKQHQVUBA8FkFYln+T7v5RZItFLYvZgX i3bvpyleWIw61ZU/2yeFRey9yxCXWXRQeYi/XjPEUfv03uNbwnnjSniKHIo9TuLZxl j2+sGzv/r7SbA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4byX4y0FyRz6twb; Thu, 7 Aug 2025 18:03:14 +0200 (CEST) Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Thu, 07 Aug 2025 16:03:14 +0000 To: carlosv775@gmail.com Cc: PHP internals Subject: Re: [PHP-DEV] Test coverage In-Reply-To: References: Message-ID: <1f5225ac83c660b6f333981b75f00669@posteo.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable From: thomas.pakkanen@posteo.de (=?UTF-8?Q?Thomas_Kr=C3=BCger?=) Hi Vinicius, as Ilija mentioned you can see here an overall view on the current 55%=20 line coverage in PHP. I guess its "line coverage" (a less strong code=20 coverage type in comparison to types like "branch coverage", "MC/DC" or=20 wonderful "path coverage"): https://app.codecov.io/github/php/php-src?search=3D&trend=3Dall%20time More important than high line coverage would be to collect the=20 requirements of features in a project, which should be tested plus=20 negative variants of the reuirements. So, high code coverage is fine,=20 but high test coverage would be more helpful. :) Here some sloppy explanations: Code coverage: Percentage of how many lines of code are covered by automated tests. Test coverage: Percentage of how many defined test cases covered real requirements. Requirement coverage: Percentage of how many reuirements are well defined and how many are=20 missing. Be ware of: 100% line coverage does not mean anything other that 100% of the lines=20 of a project a "covered" by "any" automated tests, Your project still=20 includes bugs, missing features, security problems and crashes. So=20 additional coverage types like input value coverage, path coverage,=20 MC/DC and other helps to have more confidents in the correctness of the=20 project. :) Best regards, Thomas Am 07.08.2025 17:44 schrieb Ilija Tovilo: > Hi Vinicius >=20 > On Thu, Aug 7, 2025 at 5:20=E2=80=AFPM Vinicius Dias =20 > wrote: >>=20 >> I would like to know how or where I can find the code coverage for >> php-src to see if there is any uncovered code I might be able to >> contribute with new tests. >=20 > It lives here: >=20 > https://app.codecov.io/github/php/php-src >=20 > However, it seems it's currently borked. The nightly job succeeded, so > I'm not immediately sure what's wrong. I'll put it on my list, unless > somebody beats me to it. >=20 > Ilija