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

Skooma in minitest parallel setup #30

Open
buszu opened this issue Jul 24, 2024 · 0 comments
Open

Skooma in minitest parallel setup #30

buszu opened this issue Jul 24, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@buszu
Copy link

buszu commented Jul 24, 2024

Hey, skooma's coverage fails in parallel setup, at least with minitest.

Multiple processes:

PARALLEL_WORKERS=2 bin/rails test
.....................................................................

Finished in 3.441208s, 20.0511 runs/s, 72.3583 assertions/s.
(...)
OpenAPI schema /project_openapi.yml coverage report: 0 / 2 operations (0.0%) covered.
Uncovered paths:
GET /api/v1/endpoint 200
GET /api/v1/endpoint 401

Single process:

PARALLEL_WORKERS=1 bin/rails test
.....................................................................

Finished in 6.011068s, 11.4788 runs/s, 41.4236 assertions/s.
(...)
OpenAPI schema /project_openapi.yml coverage report: 2 / 2 operations (100.0%) covered.
All paths are covered!

Looks like @covered_paths set is respawned with each process, but I wasn't digging that much into it.

@skryukov skryukov added the bug Something isn't working label Jul 24, 2024
@skryukov skryukov added the help wanted Extra attention is needed label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants