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

SimpleCov showing incorrect code coverage when parallelize enabled in test_helper. #39

Closed
alkesh26 opened this issue Mar 25, 2019 · 2 comments
Assignees

Comments

@alkesh26
Copy link
Contributor

Context
When parallelize(workers: :number_of_processors) is added in test_hepler.rb and we execute rake, the test coverage report for SimpleCov show incorrect results.
wrong report

When this line is commented out the coverage report is correct.
correct report

I also tried SimpleCov Parallel gem but this too shows an incorrect result.

@puneet-sutar
Copy link
Contributor

@alkesh26 Please do some more research on your end. This is a new feature and might also be buggy!

@alkesh26 alkesh26 self-assigned this Mar 28, 2019
@alkesh26
Copy link
Contributor Author

@puneet-sutar I researched on this issue and was not able to get the correct solution. So I have created a new issue in SimpleCov gem simplecov-ruby/simplecov#718 and mentioned the approaches I have taken to solve this.

I will take a look again into this tomorrow.

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

No branches or pull requests

3 participants