Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Failure(s) #137

Open
sebastianbergmann opened this issue Feb 2, 2024 · 0 comments
Open

Test Failure(s) #137

sebastianbergmann opened this issue Feb 2, 2024 · 0 comments
Labels

Comments

@sebastianbergmann
Copy link
Owner

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 sebastianbergmann/php-code-coverage#1028, for instance), we need to have a reliable CI pipeline again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant