sebastianbergmann / phpcov

TextUI frontend for php-code-coverage
BSD 3-Clause "New" or "Revised" License
223 stars 58 forks source link

Test Failure(s) #137

Open sebastianbergmann opened 6 months ago

sebastianbergmann commented 6 months ago

On GItHub Actions, all tests pass with PHP 8.2 but one test fails with PHP 8.3 and PHP 8.4.

On my local machine, I have three failing tests:

1) /usr/local/src/phpcov/tests/end-to-end/merge/valid-directory-with-text-report-stdout.phpt
Failed asserting that string matches format description.
--- Expected
+++ Actual
@@ @@

 Generating code coverage report in text format ... 

-Code Coverage Report:   
-  %s   
-                        
- Summary:               
-  Classes: 100.00% (1/1)
-  Methods: 100.00% (2/2)
-  Lines:   66.67% (2/3) 
+Code Coverage Report:  
+  2024-02-02 08:50:23  
+                       
+ Summary:              
+  Classes:  0.00% (0/1)
+  Methods:  0.00% (0/2)
+  Lines:    0.00% (0/3)

-SebastianBergmann\PHPCOV\TestFixture\Greeter
-  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
+done
+int(0)

/usr/local/src/phpcov/tests/end-to-end/merge/valid-directory-with-text-report-stdout.phpt:20

2) /usr/local/src/phpcov/tests/end-to-end/execute/valid-script-argument-with-cli-include-with-text-report.phpt
Failed asserting that string matches format description.
--- Expected
+++ Actual
@@ @@
  Summary:              
   Classes:        (0/0)
   Methods:        (0/0)
-  Lines:   50.00% (1/2)
+  Lines:          (0/0)

/usr/local/src/phpcov/tests/end-to-end/execute/valid-script-argument-with-cli-include-with-text-report.phpt:48

3) /usr/local/src/phpcov/tests/end-to-end/merge/valid-directory-with-text-report.phpt
Failed asserting that string matches format description.
--- Expected
+++ Actual
@@ @@
 int(0)

-Code Coverage Report:   
-  %s   
-                        
- Summary:               
-  Classes: 100.00% (1/1)
-  Methods: 100.00% (2/2)
-  Lines:   66.67% (2/3) 
-
-SebastianBergmann\PHPCOV\TestFixture\Greeter
-  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
+Code Coverage Report:  
+  2024-02-02 08:50:23  
+                       
+ Summary:              
+  Classes:  0.00% (0/1)
+  Methods:  0.00% (0/2)
+  Lines:    0.00% (0/3)

/usr/local/src/phpcov/tests/end-to-end/merge/valid-directory-with-text-report.phpt:28

Before any further development is done, for instance on #109 or #115 (using https://github.com/sebastianbergmann/php-code-coverage/pull/1028, for instance), we need to have a reliable CI pipeline again.