pest icon indicating copy to clipboard operation
pest copied to clipboard

[Bug]: Tests in parallel are not counting

Open el-klo opened this issue 1 year ago • 2 comments

What Happened

Whenever i run my tests in parallel, the number of tests stays at 667. When i run a normal test-run the correct number of tests shows. The number of assertions is correct, this does not get affected by the -p tag.

Screenshot 2024-05-15 at 10 05 25 Screenshot 2024-05-15 at 10 05 47

When i switch to a different branch in GIT and run the parralel test again, it shows the correct number of tests.

How to Reproduce

It stopped counting after i reached 667 tests

Sample Repository

No response

Pest Version

2.34.7

PHP Version

8.3.7

Operation System

macOS

Notes

The version numbers i am using: pestphp/pest 2.34.7 2.34.7 The elegant PHP Testing Framework. pestphp/pest-plugin-faker 2.0.0 2.0.0 The Pest Faker Plugin pestphp/pest-plugin-laravel 2.4.0 2.4.0 The Pest Laravel Plugin pestphp/pest-plugin-livewire 2.1.0 2.1.0 The Pest Livewire Plugin pestphp/pest-plugin 2.1.1 2.1.1 The Pest plugin manager pestphp/pest-plugin-arch 2.7.0 2.7.0 The Arch plugin for Pest PHP.

el-klo avatar May 15 '24 08:05 el-klo

I'm having the same issue, it looks like assertions are correctly counted across processes but (passed) tests aren't.

Single, run with sail pest Screenshot 2024-08-08 at 2 05 14 PM

Parallel, run with sail pest -p Screenshot 2024-08-08 at 2 05 26 PM

Versions:

  • pestphp/pest 2.34.9
  • pestphp/pest-plugin-laravel 2.4.0
  • php 8.2.20

OS: MacOS

martinbuezas avatar Aug 08 '24 17:08 martinbuezas

Removing todos from my tests (commenting out to-do tests) fixed the passed tests count for me.

martinbuezas avatar Aug 18 '24 15:08 martinbuezas